当前位置: 首页 > news >正文

Redis报错:MISCONF Redis is configured to save RDB snapshots

错误提示内容:

2024-06-25 16:30:49 : Connection: Redis_Server > [runCommand] PING
2024-06-25 16:30:49 : Connection: Redis_Server > Response received : -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 for details about the RDB error.
2024-06-25 16:30:49 : Connection: AUTH ERROR

问题定位:

网上查阅后发现是因为,把redis快照强制关闭了导致不能持久化的问题
目前发现两种解决方案:
1、通过stop-writes-on-bgsave-error值设置为no即可避免这种问题。
2、通过修改redis.conf配置文件,将stop-writes-on-bgsave-error值改为no(效果和1一样)

解决方案:

通过redis命令行直接改:
进入redis命令行执行:config set stop-writes-on-bgsave-error no

在这里插入图片描述

通过修改redis.conf文件修改:
在这里插入图片描述
保存退出,杀掉Redis进程,然后重新启动。

http://www.lryc.cn/news/386179.html

相关文章:

  • 关于使用绿联 USB-A转RJ45 2.5G网卡提速的解决问题
  • Qt: QPushButton 按钮实现 上图标下文字
  • 使用阿里云效API操作流水线
  • 使用命令行创建uniapp+TS项目,使用vscode编辑器
  • ABC355 Bingo2
  • Spring+Vue项目部署
  • 【uml期末复习】统一建模语言大纲
  • Linux高级IO
  • go-admin-ui开源后台管理系统华为云部署
  • 点云入门知识
  • HTML静态网页成品作业(HTML+CSS+JS)——家乡莆田介绍网页(5个页面)
  • #### grpc比http性能高的原因 ####
  • 微软Edge浏览器搜索引擎切换全攻略
  • <Linux> 实现命名管道多进程任务派发
  • BigInteger 和 BigDecimal(java)
  • Linux 进程间通讯
  • 数据分析三剑客-Matplotlib
  • FastAPI-Body、Field
  • 软件设计师笔记-操作系统知识(二)
  • 鸿蒙UI开发快速入门 —— part12: 渲染控制
  • 添加用户页面(Flask+前端+MySQL整合)
  • 素数筛(算法篇)
  • 迁移Microsoft Edge
  • Maven高级理解属性
  • Trilium Notes浏览器插件保存网页内容到docker私有化部署
  • C++ 统计二进制串中0出现的个数
  • note-网络是怎样连接的6 请求到达服务器,响应返回浏览器
  • 存储过程与函数:封装数据库逻辑的艺术(七)
  • 【复旦邱锡鹏教授《神经网络与深度学习公开课》笔记】卷积
  • Trie字符串统计