修改Redis.conf文件

1、daemonize no 改为 daemonize yes   ==========改为以守护进程的方式运行

2、protected-mode yes 改为 protected-mode no 

3、#requirepass foobared                       =========="#"号去掉,表示redis连接需要密码

4、bind 127.0.0.1 改为 #bind 127.0.0.1   ==========否则客户端连不上

 

修改Redis开始自启动文件,开头添加下面2行

# chkconfig:   2345 90 10
# description:  Redis is a persistent key-value database

 

 


 

posted on 2018-12-26 14:06  linux_ng  阅读(592)  评论(0)    收藏  举报