首页 > 数据库 > redis > 正文

redis报错 [ERR] Node 192.168.0.201:7001 is not empty. Either the node already
2017-02-15 11:55:56 点击:

redis启动集群报错:[ERR] Node 192 168 0 201:7001 is not empty Either the node already knows other nodes (check with
redis启动集群报错:

[ERR] Node 192.168.0.201:7001 is not empty. Either the node already knows other nodes (check with CLUSTER NODES) or contains some key in database 0.



以我的3.2.6为例说明下处理方法:关闭集群(一般已经关闭),重启各机器前删除以下文件


rm -rf dump.rdb         #注意路径改为自己实际的
rm -rf nodes-70*       #注意路径改为自己实际的


重启单机:

redis-server cluster/7001/redis.conf  #注意路径改为自己的
redis-server cluster/7002/redis.conf  #注意路径改为自己的
redis-server cluster/700n...


加入集群(注意ip的端口改成自己的):

redis-trib.rb  create  --replicas  1  192.168.0.201:7001 192.168.0.201:7002   192.168.0.201:7003  192.168.0.202:7004   192.168.0.202:7005 192.168.0.202:7006


看到下面说明成功:





相关热词搜索:Node already knows other redis

上一篇:Linux 编译安装redis3.2.6
下一篇:redis 搭建sentinel 无法主从自动切换 一直卡在-sdown sentinel