Redis 问题汇总
Redis 快照关闭了导致不能持久化的问题
引用网站: http://www.yaowenming.com/A/VGzlDawYzb/
问题描述
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 快照关闭了导致不能持久化的问题。
解决方法
1. 在命令行输入: redis-cli
, 然后输入下面语句即可: config set stop-writes-on-bgsave-error no
2. 修改 redis.conf 文件, stop-writes-on-bgsave-error 字符串后面的 yes 设置为 no 即可。