Redis创建集群时出现ERR Slot 5798 is already busy (Redis::CommandError)

创建Redis集群时要保证所有节点库是空的,否则会出现下面这个情况

[root@localhost src]# ./redis-trib.rb create 1.1.1.5:6379 1.1.1.5:6380 1.1.1.5:6381
>>> Creating cluster
[ERR] Node 1.1.1.5:6379 is not empty. Either the node already knows other nodes (check with CLUSTER NODES) or contains some key in database 0.

这里写图片描述

解决方案:
挨个登录客户端,执行flushallcluster reset命令,然后重新执行./redis-trib.rb create 1.1.1.5:6379 1.1.1.5:6380 1.1.1.5:6381创建集群。
如果没有执行cluster reset,创建集群时会出现ERR Slot 5798 is already busy (Redis::CommandError)的错误

Redis创建集群时出现ERR Slot 5798 is already busy (Redis::CommandError)_第1张图片

你可能感兴趣的:(redis)