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

在cenos中 vim /etc/redis.conf 中

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

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

 

#其它机器连接

 vim /etc/redis.conf 中 

/bind

ip是当前电脑的ip

然后重启

原文地址:https://www.cnblogs.com/wuheng-123/p/9766554.html