执行rewrite 时候 提示
(error) NOAUTH Authentication required. 解决办法 :
auth 123456
然后在执行config rewrite 就ok了。
设置密码后,redis-trib.rb check 192.168.0.107:6379 报错连接不上实例,解决方法:
vim /usr/lib/ruby/gems/1.8/gems/redis-3.3.0/lib/redis/client.rb
class Redis class Client
DEFAULTS = { :url => lambda { ENV["REDIS_URL"] }, :scheme => "redis", :host => "127.0.0.1", :port => 6379, :path => nil, :timeout => 5.0, :password => "gh*8pass", :db => 0, :driver => nil, :id => nil, :tcp_keepalive => 0, :reconnect_attempts => 1, :inherit_socket => false }
修改下默认密码就可以了