首页 >
数据库 >
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 CLUSTER NODES) or contains some key in database 0.
以我的3.2.6为例说明下 ...
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
看到下面说明成功:
”您可通过以下微信二维码,赞赏作者“