Creating cluster
Connecting to node 192.168.37.128:7001: [ERR] Sorry, can't connect to node 192.168.37.128:7001
这是没有启动redis 一般再启动会报下面这个错误
Creating cluster
Connecting to node 192.168.37.128:7001: OK
[ERR] Node 192.168.37.128:7001 is not empty. Either the node already knows other nodes (check with CLUSTER NODES) or contains some key in database 0.
删除redis文件下的 .rdb 和 .aof的文件
命令: rm -rf dump.rdb *aof
./start-all.sh 启动redis
ps aux|grep redis 查看redis的进程是否启动
./redis-trib.rb create --replicas 1 192.168.37.128:7001 192.168.37.128:7002 192.168.37.128:7003 192.168.37.128:7004 192.168.37.128:7005 192.168.37.128:7006 启动redis集群

本文详细介绍了在遇到连接问题时如何解决Redis集群的创建过程。包括清除旧数据、启动Redis实例、验证进程状态及最终成功建立集群的具体步骤。
442

被折叠的 条评论
为什么被折叠?



