阿里云服务器搭建redis集群报错

如何搭建redis集群可以看我的博客:Redis集群

使用指令:

redis-cli --cluster create --cluster-replicas 1 ip:port ip:port ip:port

报错:连接拒绝。

需要修改引用redis.conf配置文件。

找到bind字段,将其设置文件0.0.0.0。关闭ip绑定,允许所有ip访问。

bind 0.0.0.0 

找到protected-mode字段,将其设置为no。取消保护模式。

protected-mode no

猜你喜欢

转载自blog.csdn.net/weixin_57023347/article/details/130045708