redis设置密码和其它服务器连接

在cenos中 vim /etc/redis.conf 中

/输入 requirepass enter件一下 小写 n 一下

吧 # requirepass #去掉,后面写你的密码

 

 

#其它机器连接

 vim /etc/redis.conf 中 

/bind

ip是当前电脑的ip

然后重启

 

posted @ 2018-10-10 15:16  python成长中  阅读(1213)  评论(0编辑  收藏  举报