redis clusters error: (error) CLUSTERDOWN The cluster is down

Replace the computer, copy the virtual machine from the old computer to the new computer, boot centos system on the virtual machine, and then start redis clusters (redis5 version) and found that a cluster can start, redis process there, but the connection to any cluster They are given node, as follows

View a single node cluster configuration information:

 

I found to be wrong because the original cause of the cluster configuration information needs to be dump.rdb and nodes.conf redis files in each instance to delete and then recreate the cluster 

 

Re-create the cluster:

  1. First start six instances redis

 

2 Enter any of redis example, create a cluster command:

./redis-cli --cluster create 192.168.5.108:8001 192.168.5.108:8002 192.168.5.108:8003  192.168.5.108:8004  192.168.5.108:8005 192.168.5.108:8006 --cluster-replicas 1

 

Enter yes to continue, you can see the cluster nodes to create a success

Test cluster:

 

Guess you like

Origin www.cnblogs.com/enjoyjava/p/11361127.html