解决"ERR Client sent AUTH, but no password is set” 错误

"ERR Client sent AUTH, but no password is set”这个错误,参考Umut Uluer的方案可较快解决,他提供两种方案:

一,Linux/Unix下:

1,打开redis配置文件redis.conf。

sudo nano /etc/redis/redis.conf

 

2,找到如下内容(若没有,则在配置文件末尾加上),去掉前面#号,将yourpassword替换为你的redis密码。

# requirepass yourpassword

 

3,重启redis。

 

二,Windows下:

1,WIN+X+A打开命令行(或管理员模式打开命令行),输入redis-cli打开redis客户端,将下述命令中的密码替换为你的redis密码。

CONFIG SET requirepass "yourpassword"

 

posted on 2020-10-06 10:25  漫步星野  阅读(21978)  评论(0)    收藏  举报

导航