创建redi集群:[ERR] Node 192.168.108.128:6391 is not empty. Either the node already knows other nodes ...

在尝试创建Redis集群时遇到错误:'Node 192.168.108.128:6391 is not empty...'。解决方法在于处理节点已知其他节点的问题,确保在初始化集群前所有节点都是干净状态。
摘要由CSDN通过智能技术生成

 

解决办法:见红色字体

>>> Creating cluster
[ERR] Node 192.168.108.128:6391 is not empty. Either the node already knows other nodes (check with CLUSTER NODES) or contains some key in database 0.
[root@localhost src]# redis-cli -h 192.168.108.128 -p 6391
192.168.108.128:6391> flushdb
OK
192.168.108.128:6391> 
[root@localhost src]# ./redis-trib.rb create --replicas 1 192.168.108.128:6379 192.168.108.128:6380 192.168.108.128:6381  192.168.108.128:6389  192.168.108.128:6390 192.168.108.128:6391
>>> Creating cluster
>>> Performing hash slots allocation on 6 nodes...
Using 3 masters:
192.168.108.128:6379
192.168.108.128:6380
192.168.108.128:6381
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值