1. 问题描述
执行
redis-cli --cluster create --cluster-replicas 1 主机:6379 主机:6380 主机:6381 主机:6389 主机:6390 主机:6391

redis集群创建的时候一直卡在Waiting for the cluster to join ....上、一直没有反应
>>> Nodes configuration updated
>>> Assign a different config epoch to each node
>>> Sending CLUSTER MEET messages to join the cluster
Waiting for the cluster to join
.....................................................................................................................................................................................
2.解决方法:
开放redis集群总线端口。集群总线端口是redis客户端连接的端口+10000。



然后成功

参考文献
在尝试使用redis-cli创建Redis集群时,如果遇到节点一直处于Waitingfortheclustertojoin状态,可能是因为集群总线端口未开放。解决方法是确保每个节点的集群总线端口(客户端端口+10000)开放,这样可以成功进行CLUSTERMEET消息传递,从而让集群正常组建。
1万+

被折叠的 条评论
为什么被折叠?



