Perfect solution to the problem of configuration files not taking effect after starting redis on linux
- 2020-06-03 08:43:57
- OfStack
After modifying redis. conf, restart redis and find that the modified configuration does not take effect. It turns out that the configuration file should be added to the command when starting redis
./redis-server /usr/local/redis-3.2.8/redis.conf &
If you look closely at the configuration file, you can see this description at the beginning
# Note that in order to read the configuration file, Redis must be
# started with the file path as first argument:
#
# ./redis-server /path/to/redis.conf
So here's the problem.