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