![]() ![]() Make sure to also modify the nf file accordingly to the configuration nf file so at the next restart of Redis the old configuration will Note that modifying the configuration on the fly has no effects on the Please refer to the CONFIG SET and CONFIG GET pages for more information. Not all of the configuration directives are supported in this way, but most Special commands CONFIG SET and CONFIG GET. The service, or querying the current configuration programmatically using the It is possible to reconfigure Redis on the fly without stopping and restarting Changing Redis configuration while the server is running (possibly concatenating the config file passed by the user, if any) whereĪrguments are translated into the format of nf. Note that internally this generates an in-memory temporary config file The format of the arguments passed via the command line is exactly the sameĪs the one used in the nf file, with the exception that the keyword The following is an example that starts a new Redis instance using port 6380Īs a replica of the instance running at 127.0.0.1 port 6379./redis-server -port 6380 -replicaof 127.0.0.1 6379 This is very useful for testing purposes. You can also pass Redis configuration parameters Is available in the self documented example nf shipped into the The list of configuration directives, and their meaning and intended usage ![]() Single-quoted string can contain characters escaped by backslashes, andĭouble-quoted strings can additionally include any ASCII symbols encoded using (double or single) quotes, as in the following example: requirepass "hello world" ![]() It is possible to provide strings containing spaces as arguments using This is an example of a configuration directive: replicaof 127.0.0.1 6380 The nf file contains a number of directives that have a very simpleįormat: keyword argument1 argument2. The proper way to configure Redis is by providing a Redis configuration file, ![]() Redis is able to start without a configuration file using a built-in defaultĬonfiguration, however this setup is only recommended for testing and Overview of nf, the Redis configuration file ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |