redis 配置认证密码

Posted on Posted in redis
Tips: 本文创建于2016年9月14日,已超过 2 年,内容或图片可能已经失效!
  1. 修改配置
vim redis.conf  
requirepass redispasswd  
  1. 使用密码连接
redis-cli -h -p 6379 -a redispasswd  
  1. 通过命令进行配置,重启后密码失效
# 进入redis操作  
> config set requirepass redispasswd  
> config get requirepass  
  1. redis-master配置了密码,slave也要配置相应的密码参数,否则无法复制
# 取消注释  
masterauth  mstpassword    
» 转载请注明来源:呢喃 » redis 配置认证密码

One thought on “redis 配置认证密码

  1. Google Chrome 59.0.3071.115 Google Chrome 59.0.3071.115 GNU/Linux x64 GNU/Linux x64
    Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36

    I am not sure the place you’re getting your information, but good topic.
    I needs to spend a while finding out more
    or figuring out more. Thank you for great info I was looking for this information for my mission.

Leave a Reply

Your email address will not be published. Required fields are marked *

fourteen − six =