解決"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"

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM