Redis 登陆 与 修改密码(一)

   //设置密码
   redis 127.0.0.1:6379> config set requirepass test123
   //查询密码:
   127.0.0.1:6379> config get requirepass
   (error) ERR operation not permitted
   //登陆,密码验证:
   127.0.0.1:6379> auth test123
   OK
   //再次查询:
   127.0.0.1:6379> config get requirepass
   1) "requirepass"
   2) "test123"
   

  

 

posted @ 2017-11-27 00:23  蜗牛的礼物  阅读(174)  评论(0编辑  收藏  举报