
修改redis.conf后,重启redis,发现修改的配置未生效,原来是需要在启动redis的时候在命令中加上配置文件,命令如下./redis-server /usr/local/redis-3.2.8/redis.conf &仔细阅读配置文件可以开头看到有这样的描述# Note that in order to read the configuration file, Red…

修改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后配置文件未生效的问题就是小编分享给大家的全部内容了,希望能给大家一个参考,也希望大家多多支持脚本之家。
您可能感兴趣的文章:
- 详解Centos7下配置Redis并开机自启动
- CentOS系统下Redis安装和自启动配置的步骤
- Linux下Redis安装配置教程
- Linux下安装Redis并设置相关服务
- Linux中设置Redis开机启动的方法
扫一扫在手机打开
评论
已有0条评论
0/150
提交
热门评论
相关推荐