【原创】解决PHP报错:RedisException: MISCONF Redis is configured to save RDB snapshots, but it is currently not able to persist on disk.

blogdaren 2019-12-06 抢沙发 281人次

问题背景:

意外删除了 redis 数据库目录,结果PHP报错:

RedisException: MISCONF Redis is configured to save RDB snapshots, but it is currently not able to persist on disk.

问题原因:

redis强制关闭了快照进而导致不能持久化,但是不能十分确定是因误删操作引起redis的此种行为。

解决方案:

# vim /path/to/redis/6379.conf

# 将配置项:
stop-writes-on-bgsave-error yes

# 改为如下:
stop-writes-on-bgsave-error no

发表评论:

您的昵称:
电子邮件:
个人主页: