在报警邮件中看到这么一段redis错误信息,于是进行修复。错误信息如下:
msg: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被配置为保存数据库快照,但它目前不能持久化到硬盘。用来修改集合数据的命令不能用。请查看Redis日志的详细错误信息。
原因:强制关闭Redis快照导致不能持久化。
解决方案:将stop-writes-on-bgsave-error设置为no
config set stop-writes-on-bgsave-error no

本文介绍了Redis因配置问题无法正常进行数据持久化的错误,并提供了解决方案,通过调整配置项stop-writes-on-bgsave-error来恢复正常的数据写入。
3724

被折叠的 条评论
为什么被折叠?



