【Redis】redis報錯:(error) MISCONF Redis is configured to save RDB snapshots...

【Redis】redis報錯:(error) MISCONF Redis is configured to save RDB snapshots…

一、問題描述

redis 有時會報出如下錯誤,導致服務不可用:

(error) 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 登陸 redis server;
然後,執行如下命令即可;

127.0.0.1:6379> config set stop-writes-on-bgsave-error no

——2020-06-29——

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