redis无法以自定义的配置文件启动

安装完之后,直接使用redis-server能够启动服务,
但是redis-server redis.conf指定配置文件之后就会报错
FATAL CONFIG FILE ERROR
Reading the configuration file, at line 80
'protected-mode yes'
Bad directive or wrong number of arguments
直接注释掉下面还是会报各种错
下面是我的redis版本号:
Redis server v=2.8.9 sha=caa16d69:1 malloc=jemalloc-3.2.0 bits=64 build=86707df6131e7e29

阅读 13.7k
4 个回答

protected-mode yes 改成 no 試試尼

操作系统的原因,这个问题在deepin中出现的但是在其他的操作系统,比如说centos中就不会出现、

新手上路,请多包涵

楼主解决了吗?

新手上路,请多包涵

我也是这个问题,不知道咋搞

FATAL CONFIG FILE ERROR *
Reading the configuration file, at line 88
>>> 'protected-mode yes'
Bad directive or wrong number of arguments

注释了,下面会报相同的错误,google也没有答案

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题