前言
標題很長哈!今天操作Redis的時候出現了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.這提示及其友好,雖長但我喜歡,框架只返回result=2并且又沒有api文檔,然而我就懵逼了,你咋不上天,我就立馬上服務器,使用command操作,嘿嘿問題來了就去
Redis問題
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.
Redis被配置為保存數據庫快照,但它目前不能持久化到硬盤。用來修改集合數據的命令不能用。請查看Redis日志的詳細錯誤信息。
原因
強制關閉Redis快照導致不能持久化。
解決方案
將stop-writes-on-bgsave-error設置為no
127.0.0.1:6379> config set stop-writes-on-bgsave-error no