Lavarl 框架下报错,Redis解决强制关闭Redis快照致使不能持久化错误

错误提示:php

local.ERROR: exception 'Predis\Response\ServerException' with message '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.' in /data/wwwroot/xxxx.com/xxx/vendor/predis/predis/src/Client.php:370redis

错误翻译:异常'Predis\Response\ServerException'带有消息'MISCONF Redis '被配置为保存RDB快照,但目前没法在磁盘上持久保存。可能修改数据集的命令将被禁用。请查看Redis日志了解错误的详细信息翻译

解决方案: 127.0.0.1:6379> config set stop-writes-on-bgsave-error no日志

原理:关闭配置项stop-writes-on-bgsave-error解决该问题code

相关文章
相关标签/搜索