redis集群错误:Node 192.168.116.133:7001 is not empty. Either the node already knows other nodes or...

1、报错信息

2、解决方法
   (1) 清空每个redis里面的数据,flushdb命令

redis集群错误:Node 192.168.116.133:7001 is not empty. Either the node already knows other nodes or..._第1张图片
  (2)如果遇到数据无法删除,需要修改redis的redis.config配置文件slave..。修改为no
           然后再指定配置文件启动 ./redis-server  ./redis.config &
 (3) 再删除数据 :flushbd,同步骤1
 (4) 删除六个文件夹下的nodes.conf配置文件 rm -rf  /redis-01/nodes.conf...

redis集群错误:Node 192.168.116.133:7001 is not empty. Either the node already knows other nodes or..._第2张图片
(5)启动服务./startAll
(6)运行脚本startCluster,或者直接运行命令

./redis-trib.rb create --replicas 1 192.168.116.1333:7001 192.168.116.1333:7002 192.168.116.1333:7003 192.168.116.1333:7004 192.168.116.1333:7005  192.168.116.1333:7006

 

结果如下:(再输入yes即可)

redis集群错误:Node 192.168.116.133:7001 is not empty. Either the node already knows other nodes or..._第3张图片

用此方法解决了上述报错问题,欢迎读者提出建议,还有问题的童鞋可后台留言!!!
 

你可能感兴趣的:(错误总结)