利用Ruby启动Redis Cluster出现如下异常:

[[email protected] redis-cluster]# ./redis-trib.rb create --replicas 1 192.168.2.99:7001 192.168.2.99:7002 192.168.2.99:7003 192.168.2.99:7004 192.168.2.99:7005 192.168.2.99:7006
>>> Creating cluster
[ERR] Node 192.168.2.99:7001 is not empty. Either the node already knows other nodes (check with CLUSTER NODES) or contains some key in database 0.

Redis集群启动异常


原因:节点不是空的

Redis集群启动异常

解决方案:----------------------------->>>>>>>>>>>>>

1、停止集群节点(建议写一个脚本方便)

Redis集群启动异常


2、删除各集群节点下的dump.rdb nodes.conf

Redis集群启动异常


3、启动节点

Redis集群启动异常


4、启动集群

Redis集群启动异常


相关文章: