强制关闭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 天前
SpringMVC 异常处理?Spring 父子容器?
java·spring·mvc
鬼先生_sir1 天前
Spring AI Alibaba 用户使用手册
java·人工智能·springai
有梦想的小何1 天前
从0到1搭建可靠消息链路:RocketMQ重试 + Redis幂等实战
java·redis·bootstrap·rocketmq
大数据新鸟1 天前
HashMap、Hashtable、ConcurrentHashMap 核心对比
java
MX_93591 天前
Spring MVC拦截器
java·后端·spring·mvc
何陋轩1 天前
Redis深度解析:把缓存核心讲透,吊打面试官
redis·面试
橘子编程1 天前
MindOS:你的AI第二大脑知识库
java·开发语言·人工智能·计算机网络·ai
XWalnut1 天前
LeetCode刷题 day9
java·算法·leetcode
忧郁的Mr.Li1 天前
JAVA工具类---PDF电子签章工具类
java·pdf
零二年的冬1 天前
epoll详解
java·linux·开发语言·c++·链表