Redis.conf file not loading changes

I recently changed redis.conf to require and disable saving to disk. But it doesn't seem to load the config. Would I need to kill the process (does it even start when I didn't issue "src / redis-server")? Im using Ubuntu 10.01


source to share

1 answer

It actually depends on the Redis version, not the Ubuntu version. Redis 2.0 (or greater) includes a config set command to change server configuration without rebooting.

To change the configuration, you must change the requirepass line and comment out the save lines in the config file, and then you can connect to redis-cli to enter the following commands:

redis> config set requirepass XXX
redis> auth XXX
redis> config set save ""


There is no need to restart the server.

If you are using an older version of Redis, you will have to restart the instance.



All Articles