Redis报错 MISCONF Redis is configured to save RDB snapshots, but it is currently not able to persis...

报错信息如下
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.; nested exception is redis.clients.jedis.exceptions.JedisDataException: 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快照关闭了导致不能持久化
解决办法:
修改redis.conf配置文件中stop-writes-on-bgsave-error的值为 no

cd /usr/local/redis-stable
vim redis.conf

stop-writes-on-bgsave-error no
然后重启Redis

cd /usr/local
bin/redis-server stop
bin/redis-server redis-stable/redis.conf
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。