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

相關文章
相關標籤/搜索