今天项目接口开发过程中,在环境进行接口测试时,发现联调环境的redis似乎出了问题,报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.
解决方法:
ccltest4-redis%./redis-cli
127.0.0.1:6379> config set stop-writes-on-bgsave-error no
OK
127.0.0.1:6379> lpush myColour "red"