修改redis.conf后,重启redis,发现修改的配置未生效,原来是需要在启动redis的时候在命令中加上配置文件,命令如下
./redis-server /usr/local/redis-3.2.8/redis.conf &
仔细阅读配置文件可以开头看到有这样的描述
# 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
所以问题就在这里。
最后
以上就是痴情小蜜蜂最近收集整理的关于解决linux上启动redis后配置文件未生效的问题的全部内容,更多相关解决linux上启动redis后配置文件未生效内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复