redis单机有设置密码,但是创建集群的时候报错了
需要修改redis/client.rb 文件
可以通过 find / -name client.rb 去定位该文件
DEFAULTS = {
:url => lambda { ENV["REDIS_URL"] },
:scheme => "redis",
:host => "127.0.0.1",
:port => 6379,
:path => nil,
:timeout => 5.0,
:password => "xxxxxx",
:db => 0,
:driver => nil,
:id => nil,
:tcp_keepalive => 0,
:reconnect_attempts => 1,
:inherit_socket => false
}
修改password为自己的redis密码即可
原文:创建redis集群,第二次踩坑,Sorry, can't connect to node_高晓波的个人博客