What is difference between original and old conf file in redis and what is location of old file persisted in redis server.
I have read about that in config rewrite command in redis documentation.
What is difference between original and old conf file in redis and what is location of old file persisted in redis server.
I have read about that in config rewrite command in redis documentation.
Copyright © 2021 Jogjafile Inc.
Redis has a single config file. But if you set few configs, using
redis-cli> CONFIG SET
command, then you need to either useCONFIG REWRITE
to make sure all those changes reflect inredis.conf
file or you manually updateredis.conf
file with the same changes. If you don't do anyone the steps, the next time when you restart redis, the old config would be picked up asredis.conf
doesn't change automatically.Reference - https://redis.io/topics/config
Also, the file location by default usually is
/etc/redis.conf
. When you install redis from source, you get default redis.conf as well in that pkg.