Redis创建集群Creating cluster [ERR] Sorry, can't connect to node 192.168.X.X:XXXX

redis创建集群——[ERR] Sorry, can’t connect to node 192.168.X.X:XXXX

原因:

redis默认只允许本地访问,要使redis可以远程访问可以修改redis.conf

解决办法:

1.注释掉bind 127.0.0.1可以使所有的ip访问redis

2.若是想指定多个ip访问,但并不是全部的ip访问,可以bind

3.版本问题:!!!在redis3.2之后,redis增加了protected-mode
在这个模式下,即使注释掉了bind 127.0.0.1,再访问redisd时候还是报错
修改办法:protected-mode no

发布了223 篇原创文章 · 获赞 20 · 访问量 4万+

猜你喜欢

转载自blog.csdn.net/qq_30242987/article/details/99733777