Redis 遠程突然連接錯誤,提示RDB ERROR??系統是Linux
Response received : -MISCONF Redis is configured to save RDB snapshots, but it is currently not able to persist on disk. Commands that may modify the data set are disabled, because this instance is configured to report errors during writes if RDB snapshotting fails (stop-writes-on-bgsave-error option). Please check the Redis logs for details about the RDB error.
暫時的解決方法:
- 本地連接:redis-cli -h 127.0.0.1 -p 6379
- 運行 config set stop-writes-on-bgsave-error no
如果出現 Redis (error) NOAUTH Authentication required 說明你的reids設置了密碼,需要先輸入密碼,如下
auth "yourpassword"
例:假如你的密碼爲admin,則輸入 auth admin
說明:
“stop-writes-on-bgsave-error” 選項默認是yes,設置爲 no,即當bgsave快照操作出錯時停止寫數據到磁盤。
原因:
由於我的服務器真的出現了磁盤爆滿的情況,使用100%,導致redis寫時報錯