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集群