The steps for managing Redis Server configurations are as follows:
- To start a Redis Server with configurations loaded from a config file, append the config file path after redis-server:
$ bin/redis-server conf/redis.conf
- To include another config file, use the include directive in the Redis config file. For example, we can put common configurations into /redis/conf/redis-common.conf and include it in redis.conf:
include /redis/conf/redis-common.conf
- To override configuration parameters when starting Redis Server, append the configuration directives and values after redis-server:
$ bin/redis-server conf/redis.conf --loglevel verbose --port 6666
- To retrieve a server configuration parameter, use the CONFIG GET command: ...