redis服务在宕机之后报错“Node xxxx:7000 is not empty. Either the node already knows other nodes (check with CLUSTER NODES) or contains some key in database 0”(windows)

redis在启动集群时报错,xxxx:7000 is not empty. Either the node already knows other nodes(check with CLUSTER NODES) or contains some key in database 0”

解决方案:

1、删除redis启动集群时生成的.aof文件和.rdb文件;

2、将对应节点的“nodes-7000.conf”文件(在redis.windows.config文件的“cluster-config-file nodes-7000.conf”位置处配置)删除

3、重新执行“redis-trib.rb create --replicas 1 xxxx:7000 xxxx:7001 xxxx:7002 xxxx:7003 xxxx:7004 xxxx:7005”,启动集群成功

aof和rdb是两个可持久化文件,一般可用来做数据恢复

aof比rdb在可靠性上更高一些

猜你喜欢

转载自www.cnblogs.com/jeff-z-blog/p/9493777.html