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在可靠性上更高一些