美文网首页
Redis报错 MISCONF Redis is configu

Redis报错 MISCONF Redis is configu

作者: 空尘AI | 来源:发表于2020-06-22 17:31 被阅读0次

报错信息如下
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

相关文章

网友评论

      本文标题:Redis报错 MISCONF Redis is configu

      本文链接:https://www.haomeiwen.com/subject/ntkffktx.html