启动Redis集群报错(Sorry,can'tconnecttonode)
需要修改 /usr/local/rvm/gems/ruby-2.4.1/gems/redis-4.0.1/lib/redis/client.rb
路径可能不一样,先查找一下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就OK了
posted @
2021-07-07 15:38
--pterosaur
阅读(5)
评论(0)
编辑
收藏
举报
刷新评论刷新页面返回顶部
Copyright © 2021 --pterosaur
Powered by .NET 5.0 on Kubernetes