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

+3


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 127.0.0.1:6379> config set requirepass XXX
OK
redis 127.0.0.1:6379> auth XXX
OK
redis 127.0.0.1:6379> config set save ""
OK

      



There is no need to restart the server.

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

+3


source







All Articles