前言
標(biāo)題很長哈!今天操作Redis的時(shí)候出現(xiàn)了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文檔,然而我就懵逼了末荐,你咋不上天侧纯,我就立馬上服務(wù)器,使用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被配置為保存數(shù)據(jù)庫快照眶熬,但它目前不能持久化到硬盤。用來修改集合數(shù)據(jù)的命令不能用块请。請查看Redis日志的詳細(xì)錯(cuò)誤信息娜氏。
原因
強(qiáng)制關(guān)閉Redis快照導(dǎo)致不能持久化。
解決方案
將stop-writes-on-bgsave-error設(shè)置為no
127.0.0.1:6379> config set stop-writes-on-bgsave-error no