Redis 报错:MISCONF Redis is configured to save RDB snapshots, but is currently not able to......

在这里插入图片描述
Redis报错信息:(error) 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
意思是:(错误)misconf redis配置为保存RDB快照,但它当前无法在磁盘上持久。可以修改数据集的命令被禁用,因为此实例被配置为在RDB快照失败时报告写入过程中的错误(在bgsave错误选项上停止写入)。有关RDB错误的详细信息,请查看redis日志。

方案一(命令行操作):
127.0.0.1:6379[5]> CONFIG SET stop-writes-on-bgsave-error no

在这里插入图片描述

方案二(修改redis.conf文件)

vim /etc/redis.conf 并重启redis服务

# However if you have setup your proper monitoring of the Redis server
# and persistence, you may want to disable this feature so that Redis will
# continue to work as usual even if there are problems with disk,
# permissions, and so forth.
stop-writes-on-bgsave-error no
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值