Redis.conf file not loading changes
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 to share