您的位置:首页 > 数据库 > Redis

REDIS持久化报错失败

2016-03-17 17:25 288 查看
最近在生成环境中发现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即可
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: