【redis】搭建redis集群报错[ERR] Node 172.17.0.2:6379 is not empty. Either the node already knows other nodes

搭建redis集群报错[ERR] Node 172.17.0.2:6379 is not empty. Either the node already knows other nodes (check with CLUSTER NODES) or contains some key in database 0.

看到网上很多文章要删掉data目录里的aof、rdb、node-6379-file.conf文件,如果不删该怎么弄?有大神知道吗?

也有用下面命令的:

redis-cli --cluster fix 127.0.0.1 6379

参考文章:
[redis] Node is not empty. Either the node already knows other nodes
redis: (error) CLUSTERDOWN The cluster is down

你可能感兴趣的:(redis,mysql,数据库)