問題原因:沒有設置redis的密碼
解決:命令行進入Redis的文件夾:
D:\Redis-x64-3.2.100>redis-cli.exe
查看是否設置了密碼:
127.0.0.1:6379> auth root
(error) ERR Client sent AUTH, but no password is set
說明沒有設置密碼,執行命令:
127.0.0.1:6379> config set requirepass root
OK
出現OK說明設置成功
redis 127.0.0.1:6379> CONFIG SET requirepass "123456"
OK
redis 127.0.0.1:6379> AUTH 123456
Ok
設置下這個配置密碼就好了