REDIS持久化报错失败
2016-03-17 17:25
288 查看
最近在生成环境中发现REDIS无法持久化,报错信息如下:
处理方案:
根据提示,在配置文件/etc/sysctl.conf中加入:
vm.overcommit_memory=1
重启REDIS即可
redis log报错: [7666] 15 Jan 00:22:36.028 # Error moving temp DB file on the final destination: Invalid cross-device link [1937] 15 Jan 00:22:36.513 # Background saving error [1937] 15 Jan 00:22:36.614 * 1 changes in 900 seconds. Saving... [7679] 15 Jan 00:27:15.659 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect. [7679] 15 Jan 00:27:35.287 * DB loaded from disk: 19.629 seconds |
根据提示,在配置文件/etc/sysctl.conf中加入:
vm.overcommit_memory=1
重启REDIS即可
相关文章推荐
- CentOS 下 redis 安装与配置
- redis单机及其集群的搭建
- redis简单总结
- redis 命令行 操作
- redis php sort 函数
- redis php 实例二
- redis php 实例一
- redis 分布式,主从同步
- inux redis 安装配置, 以及redis php扩展
- NET中使用Redis (二)
- Codis集群搭建摘要
- Redis+Nginx+Tomcat实现Session共享
- Redis入门很简单之九【SpringMvc+Mybatis与redis整合让Mybatis管理缓存】
- Redis开源代码读书笔记一(介绍)
- redis单机和集群部署
- CentOS7安装配置redis-3.0.0
- redis sentinel 机制用法
- Redis 起步
- linux下安装redis集群(Master-Slave)
- CentOS 7 安装 redis3.0.7 详细步骤