redis Error就是redis數據庫和其組合使用的部件出現錯誤,這個出現的錯誤有很多種,在此舉例幾種:
Redis被配置為保存數據庫快照,但它目前不能持久化到硬盤。用來修改集合數據的命令不能用。請查看Redis日志的詳細錯誤信息。
原因:(推薦學習:Redis視頻教程)
強制關閉Redis快照導致不能持久化。
解決方案:
127.0.0.1:6379> set name "hello" (error) NOAUTH Authentication required. 127.0.0.1:6379> (error) NOAUTH Authentication required. (error) ERR unknown command '(error)' 127.0.0.1:6379> auth "root"
運行config set stop-writes-on-bgsave-error no 命令后,關閉配置項stop-writes-on-bgsave-error解決該問題。
root@ubuntu:/usr/local/redis/bin# ./redis-cli 127.0.0.1:6379> config set stop-writes-on-bgsave-error no OK 127.0.0.1:6379> lpush myColour "red" (integer) 1
Redis (error) NOAUTH Authentication required.解決方法
127.0.0.1:6379> auth “yourpassword”??
例如密碼是‘root’,當出現認證問題時候,輸入“auth ‘root’”即可
可以進入
127.0.0.1:6379> auth “root”
OK
creating server tcp listening socket 127.0.0.1:6379: bind No error
window下安裝redis報錯:
creating server tcp listening socket 127.0.0.1:6379: bind No error的解決方案
如下按順序輸入如下命令就可以連接成功
1. redis-cli.exe
2. shutdown
3. exit
4. redis-server.exe redis.windows.conf
更多Redis相關技術文章,請訪問Redis視頻教程欄目進行學習!