Redis (error) NOAUTH Authentication required.解决方法

忘是亡心i 2022-05-26 12:42 282阅读 0赞

原文地址:https://blog.csdn.net/basycia/article/details/52176025
出现这个问题,可能是因为设置了密码,但是没有登录,可以尝试进行登录。

  1. 127.0.0.1:6379> auth "yourpassword"

例如密码是‘root’,当出现认证问题时候,输入“auth ‘root’”即可

  1. 127.0.0.1:6379> set name "hello"
  2. (error) NOAUTH Authentication required.
  3. 127.0.0.1:6379> (error) NOAUTH Authentication required.
  4. (error) ERR unknown command '(error)'
  5. 127.0.0.1:6379> auth "root"

可以进入

  1. 127.0.0.1:6379> auth "root"
  2. OK

发表评论

表情:
评论列表 (有 0 条评论,282人围观)

还没有评论,来说两句吧...

相关阅读