MISCONF Redis is configured to save RDB snapshots解决办法 本文最后修改于 480 天前,部分内容可能已经过时! # MISCONF Redis is configured to save RDB snapshots解决办法 ``` Redis问题 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日志的详细错误信息。 ``` 采用办法 打开redis安装路径下的redis.conf文件,然后使用快捷匹配模式:/stop-writes-on-bgsave-error定位到stop-writes-on-bgsave-error字符串所在位置,接着把后面的yes设置为no,然后重启就可以了 重启命令 linux: ``` ./src/redis-server redis.conf & ```