Redis "MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk"问题的解决
2016-04-30 23:42
721 查看
异常详细信息
数据持续写入,读取速度远低于写入速度,故根据网上资料说明:
stop-writes-on-bgsave-error yes
#默认情况下,如果在RDB snapshots持久化过程中出现问题,设置该参数后,Redis是不允许用户
进行任何更新操作(set...)。避免人为强制停止redis 快照
在客户端输入
这仅仅是让程序忽略了这个异常,使得程序能够继续往下运行,但实际上数据还是会存储到硬盘失败!
解决办法
http://www.redicecn.com/html/Linux/20131125/468.html
Exception in thread "main" redis.clients.jedis.exceptions.JedisDataException: MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. Commands that may modify the data set are disabled. Please check Redis logs for details about the error.
数据持续写入,读取速度远低于写入速度,故根据网上资料说明:
stop-writes-on-bgsave-error yes
#默认情况下,如果在RDB snapshots持久化过程中出现问题,设置该参数后,Redis是不允许用户
进行任何更新操作(set...)。避免人为强制停止redis 快照
在客户端输入
config set stop-writes-on-bgsave-error no
这仅仅是让程序忽略了这个异常,使得程序能够继续往下运行,但实际上数据还是会存储到硬盘失败!
解决办法
http://www.redicecn.com/html/Linux/20131125/468.html
相关文章推荐
- (转)国内外三个不同领域巨头分享的Redis实战经验及使用场景
- Redis几个认识误区
- 利用redis做频率限制第一篇
- Tomcat集群+Nginx+Redis服务搭建
- Redis源码解析:17Resis主从复制之主节点的部分重同步流程及其他
- redis数据类型
- NoSQL之Redis(五)--- Redis测试以及其与Spring的集成
- redis安装
- Dubbo-redis3解决负载均衡Session共享
- 常用 redis 命令(for php)
- hadoop正式学习之redis---redis优化
- 用Redis bitmap统计活跃用户、留存
- 用Redis bitmap统计活跃用户、留存
- 虚拟内存的使用--Redis学习笔记九
- 3.Python操作Redis:字符串(String)
- 发布与订阅消息--Redis学习笔记八
- 基于zookeeper管理redis集群,LCMPS框架(二)
- redis windows下的环境搭建
- redis基础
- 安装 phpredis 扩展