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.
echo 1 > /proc/sys/vm/overcommit_memory
本文详细解释了Linux系统中因overcommit_memory设置为0而导致的背景保存可能在低内存条件下失败的问题。提供了修改此设置的步骤,包括在sysctl.conf文件中添加'vm.overcommit_memory=1'并重启系统或直接运行'sysctl vm.overcommit_memory=1'命令,以确保系统稳定运行。
2万+

被折叠的 条评论
为什么被折叠?



