强制关闭Redis快照导致不能持久化

(error) 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 fordetails about the RDB error.

解决方案:运行config set stop-writes-on-bgsave-error no 命令后,关闭配置项stop-writes-on-bgsave-error解决该问题。

bash 复制代码
127.0.0.1:6379> config set stop-writes-on-bgsave-error no
OK
127.0.0.1:6379> set foo tar
OK
127.0.0.1:6379> get foo
"tar"
127.0.0.1:6379> 
相关推荐
金銀銅鐵1 小时前
为什么枚举类中可以定义抽象方法
java·后端·ai编程
文丑颜不良啊3 小时前
LeetCode1941~1960题目解析
java·leetcode
txxzjmzlh3 小时前
SpringBoot 统⼀功能处理
java·spring boot·后端
nice_lcj5205 小时前
Java Lambda 表达式入门:怎么写、怎么用、常用方法有哪些
java·开发语言·后端·面试
码农小河665 小时前
基于SSM+JSP+MySQL的在线医疗服务系统的设计与实现
java·开发语言·mysql
SL_staff6 小时前
从配置失效到逻辑复用:JVS-Logic 如何构建可治理的业务编排中枢
java·spring·产品
特立独行的猫A6 小时前
一份 Markdown 发十个平台:cspub 一稿多投
java·后端·python
csdn_aspnet7 小时前
使用 Docker 和 RedisInsight 设置 Redis 以进行本地开发
redis·docker·容器·redisinsight
文丑颜不良啊7 小时前
LeetCode1961~1980题目解析
java·leetcode
文丑颜不良啊8 小时前
LeetCode2001~2020题目解析
java·leetcode