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

 

解决办法:见红色字体

>>> 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
Adding replica 192.168.108.128:6389 to 192.168.108.128:6379
Adding replica 192.168.108.128:6390 to 192.168.108.128:6380
Adding replica 192.168.108.128:6391 to 192.168.108.128:6381
M: 738c85cefac3b9858e0b122c5e75668405ae7620 192.168.108.128:6379
   slots:0-5460 (5461 slots) master
M: 4327f14bc841331eea9a2cbe8bf470b08fa76a27 192.168.108.128:6380
   slots:5461-10922 (5462 slots) master
M: 502ec99b529a65e511f2833ec7bc4018f49be68f 192.168.108.128:6381
   slots:10923-16383 (5461 slots) master
S: d5e9744af1d6d1d968d226cc66d30de75ad9eeed 192.168.108.128:6389
   replicates 738c85cefac3b9858e0b122c5e75668405ae7620
S: 666902d336e0aa538d0cec624fbe76da2e7d9608 192.168.108.128:6390
   replicates 4327f14bc841331eea9a2cbe8bf470b08fa76a27
S: 5b097cce904d97aa36ecf80de76cf50fa7e2869d 192.168.108.128:6391
   replicates 502ec99b529a65e511f2833ec7bc4018f49be68f
Can I set the above configuration? (type 'yes' to accept): 


 

你可能感兴趣的:(异常,redis)