Redis集群错误

Redis Cluster error

redis.7001.conf

port 7001  
cluster-enabled yes  
cluster-config-file nodes.conf  
cluster-node-timeout 5000  

redis.7002.conf

port 7002  
cluster-enabled yes  
cluster-config-file nodes.conf  
cluster-node-timeout 5000  

redis.7003.conf

port 7003  
cluster-enabled yes  
cluster-config-file nodes.conf  
cluster-node-timeout 5000 

redis.7004.conf

port 7004  
cluster-enabled yes  
cluster-config-file nodes.conf  
cluster-node-timeout 5000  

redis.7005.conf

port 7005  
cluster-enabled yes  
cluster-config-file nodes.conf  
cluster-node-timeout 5000  

H:\Tools\cluster>ruby H:\Tools\cluster\redis.trib.rb create --replicas 0 127.0.0.1:7001 127.0.0.1:7002 127.0.0.1:7003 127.0.0.1:7004 127.0.0.1:7005
>>> Creating cluster
Connecting to node 127.0.0.1:7001: OK
Connecting to node 127.0.0.1:7002: OK
Connecting to node 127.0.0.1:7003: OK
Connecting to node 127.0.0.1:7004: OK
Connecting to node 127.0.0.1:7005: OK
>>> Performing hash slots allocation on 5 nodes...
Using 5 masters:
127.0.0.1:7001
127.0.0.1:7002
127.0.0.1:7003
127.0.0.1:7004
127.0.0.1:7005
M: 6c5c8b20e7f051e19a41e96a1d0b37cc79abf647 127.0.0.1:7001
   slots:0-3276 (3277 slots) master
M: 6c5c8b20e7f051e19a41e96a1d0b37cc79abf647 127.0.0.1:7002
   slots:3277-6553 (3277 slots) master
M: 6c5c8b20e7f051e19a41e96a1d0b37cc79abf647 127.0.0.1:7003
   slots:6554-9829 (3276 slots) master
M: 6c5c8b20e7f051e19a41e96a1d0b37cc79abf647 127.0.0.1:7004
   slots:9830-13106 (3277 slots) master
M: 6c5c8b20e7f051e19a41e96a1d0b37cc79abf647 127.0.0.1:7005
   slots:13107-16383 (3277 slots) master
Can I set the above configuration? (type 'yes' to accept): yes
>>> 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..........................................................................................................................................................

我使用 Redis-x64-2.8。2400.zip 来自 https://github.com/MSOpenTech/redis/releases

我测试了很多次

为什么阻塞在【等待集群加入】?

请帮帮我...

我遇到了完全相同的问题。就像你一样,我让所有的 redis.{PORT}.conf 文件都具有相同的 cluster-config-file,nodes.conf。在我将它们更改为具有不同的文件 nodes-{PORT}.conf 之后,问题就消失了。