1. 程式人生 > >redis叢集報Sorry, can't connect to node錯誤

redis叢集報Sorry, can't connect to node錯誤

redis叢集建立時報錯:Sorry, can't connect to node 127.0.0.1:6001

[[email protected] redis-cluster]# ./redis-trib.rb create --replicas 1  127.0.0.1:6001 127.0.0.1:6002 127.0.0.1:6003 127.0.0.1:6004 127.0.0.1:6005 127.0.0.1:6006 >>> Creating cluster [ERR] Sorry, can't connect to node 127.0.0.1:6001

解決:

1:ip,埠等都配置正確的話,redis不能設定密碼,需要將redis.conf檔案中的密碼註釋掉    # requirepass 123456

2:redis叢集建立時報錯:in `call': ERR Slot 15495 is already busy (Redis::CommandError)

將redis.conf中定義的 cluster-config-file 所在的檔案刪除,重啟每個節點。