在使用redis的时候我们经常会遇到这种bug:
 
Python与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快照关闭了导致不能持久化的问题。
 
解决方法:
 
方法1、在连接了命令行输入:
 
redis-cli
再输入这句就可以解决:
 
config set stop-writes-on-bgsave-error no
方法2、修改redis.conf文件:
 
vim打开redis-server配置的redis.conf文件,然后使用快捷匹配模式:/stop-writes-on-bgsave-error定位到stop-writes-on-bgsave-error字符串所在位置,接着把后面的yes设置为no即可。 
 

最新文章

  1. Codeforces Round #356 (Div. 2)-A
  2. Microsoft Visual Studio 2012 文档 下载地址 vs2012 中文帮助文档
  3. PUT 还是 POST ?
  4. 《Play for Java》学习笔记(一)项目框架
  5. Lamp环境的详细安装教程
  6. RedHat7 部署ELK日志分析系统
  7. 一些 Windows 系统不常见的 鼠标光标常数
  8. Linux shell 之 提取文件名和目录名的一些方法
  9. led.c驱动框架
  10. NSA永恒之蓝病毒,如何通过360工具修复?
  11. freemarker.core.ParseException:Unexpected end of file reached
  12. 基于Unity的AR开发初探:发布AR应用到Android平台
  13. 十大经典排序算法+sort排序
  14. 解决使用elementUI框架el-upload上传组件时session丢失问题
  15. .NET Core开发日志——Edge.js
  16. Linux常用命令详解-目录文件操作命令
  17. 如何在Root的手机上开启ViewServer,使得HierachyViewer能够连接(转)
  18. python安装pip、numpy、scipy、statsmodels、pandas、matplotlib等
  19. 10 分钟实现一个自己的server监控器
  20. MySQL中的条件语句

热门文章

  1. 使用Visual Studio2019 开启Openmp的方法
  2. Windows 编程 键盘
  3. npm无法安装node-sass的解决方法
  4. servlet报错“严重: Allocate exception for servlet 类名java.lang.ClassNotFoundException: 路径. 类名”可能原因
  5. Oracle 以及 PLSQL安装
  6. java Calendar Date 获取指定日期所在月或年的第一天和最后一天
  7. 5.API详解
  8. SpringMVC【一、概述】
  9. json-server
  10. 七:mvc使用CodeFirst(代码优先)创建数据库