錯誤MISCONF Redis is configured to save RDB snapshots 的解決方法

(error) MISCONF redis is configured to save RDB snapshots, but is currently not able to persist on disk. Commands that may modify the data set are disabled. Please check Redis logs for details about the error.

大意爲:(錯誤)misconf redis被配置以保存數據庫快照,但misconf redis目前不能在硬盤上持久化。用來修改數據集合的命令不能用,使用日誌的錯誤詳細信息


這是由於強制停止redis快照,不能持久化引起的,運行info命令查看redis快照的狀態,如下:


網上搜索,很多人都給出瞭解決方法,但沒有詳細說明問題的來龍去脈,暫且記下,待有空了研究。

解決方法:通過redis-cli連接到服務器後執行以下命令:

config set stop-writes-on-bgsave-error no

如此即可。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章