今天Redis服务器在连接redis数据库时突然报错: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.

究其原因是因为强制把redis快照关闭了导致不能持久化的问题,在网上查了一些相关解决方案,通过stop-writes-on-bgsave-error值设置为no即可避免这种问题。

有两种修改方法,一种是通过redis命令行修改,另一种是直接修改redis.conf配置文件

1. 命令行方式

命令行修改方式示例:

127.0.0.1:6379> config set stop-writes-on-bgsave-error no

2. 修改配置文件

修改redis.conf文件:vi打开redis-server配置的redis.conf文件,然后使用快捷匹配模式:/stop-writes-on-bgsave-error定位到stop-writes-on-bgsave-error字符串所在位置,接着把后面的yes设置为no即可。

3.修改参数

vi /etc/sysctl.conf ,改vm.overcommit_memory=1,然后sysctl -p使配置文件生效

解决redis连接错误:MISCONF Redis is configured to save RDB snapshots相关推荐

  1. 解决redis连接错误:MISCONF Redis is configured to save RDB snapshots, but it is currently not able to...

    今天重启游戏服务器在连接redis数据库时突然报错:MISCONF Redis is configured to save RDB snapshots, but it is currently not ...

  2. [230]连接Redis后执行命令错误 MISCONF Redis is configured to save RDB snapshots

    今天在redis中执行setrange name 1 chun 命令时报了如下错误提示: (error) MISCONF Redis is configured to save RDB snapsho ...

  3. redis报错解决,MISCONF Redis is configured to save RDB snapshots

    报错记录 MISCONF Redis is configured to save RDB snapshots, but it is currently not able to persist on d ...

  4. redis数据库错误:MISCONF Redis is configured to save RDB snapshots, but it is currently not able to persis

    转载自:解决redis连接错误:MISCONF Redis is configured to save RDB snapshots, but it is currently not able to.. ...

  5. 解决MISCONF Redis is configured to save RDB snapshots, but it is currently not able to persist on disk

    1.起因 使用jeecgboot验证码登陆后台时,一直报验证码错误,看控制台发现是redis报错了,具体如下: Error in execution; nested exception is io.l ...

  6. Redis - MISCONF Redis is configured to save RDB snapshots 报RDB快照错误

    完整的报错信息: Error in execution; nested exception is io.lettuce.core.RedisCommandExecutionException: MIS ...

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

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

  8. 解决Redis之MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on d

    2018-1-31 解决Redis之MISCONF Redis is configured to save RDB snapshots, but is currently not able to pe ...

  9. 解决Redis报错Redis is configured to save RDB snapshots, but it is currently not able to persist on disk

    Redis报错信息 在Spring Boot中集成Redis客户之后,进行数据操作,发现报如下错误: org.springframework.data.redis.RedisSystemExcepti ...

最新文章

  1. 低价iPhone你买吗? | 每日趣闻
  2. AOP埋点从入门到放弃(二)
  3. 深入理解JS中的变量作用域
  4. modbus4-232 485 单机 多机
  5. linux top 命令---VIRT,RES,SHR,虚拟内存和物理内存(
  6. ffmpeg摄像头推流
  7. Zookeeper JavaApi 增删改查
  8. STL13-list容器(链表)
  9. python中swap函数_python swap
  10. 日均5亿查询量的京东订单中心,为什么舍MySQL用ElasticSearch?
  11. 【转载】如何把Mysql5.5数据库的数据导入到MSSql 数据库中【mysql-connector-odbc-3.51.28-win32】...
  12. MATLAB调用C语言程序—一个简单的例子
  13. Latex学习笔记——字母的变体(正体、花体)
  14. 文件指针以及文件的打开与关闭
  15. 墨画子卿第三章第8节:第三元素
  16. iOS app加密探究爱加密iOS app加密原理
  17. 关于Flutter中使用 webview_flutter: 1.0.6 打开公众号连接只显示标题不显示内容的记录
  18. oppo android多大内存,OPPO R15使用感受,大内存真的很有必要
  19. Redis设置过期时间为当月月底-----自动计算
  20. 不要因为不知,所以设计

热门文章

  1. 华硕固件搭建PHP环境,华硕官方ASUS固件创建optware环境及插件列表安装Swap交换文件的创建和挂载...
  2. VS2019 创建C语言项目
  3. PPT缺少图标素材? 试试Font Awasome吧!
  4. 字幕转换纯文字:SRT转TXT最快的方法
  5. Notepad++简介
  6. CSS中的BFC是什么
  7. IT行业的应届大学生,如何制作简历?
  8. Python爬虫(6):煎蛋网全站妹子图爬虫
  9. USB接口上各种小标签的含义
  10. SecureCRT Mac版 Fix it