在搭建集群之前测试了下哨兵模式,然后就有数据文件保存下来,在接下来测试集群时,没有清空数据所以导致出现了以下问题: [ERR] Node 127.0.0.1:6379 is not empty. Either the node already knows other nodes (check with CLUSTER NODES) or contains some key in database 0. 解决方案: 清空之前残留的数据文件,重新启动即可