WARNING Memory overcommit must be enabled! Without it, a background save or replication may fail...
2026/6/3 0:32:14 网站建设 项目流程

启动redis报错:

[root@localhost src]# ./redis-server ../redis.conf 7950:C 16 Dec 2025 21:17:28.535 # WARNING Memory overcommit must be enabled! Without it, a background save or replication may fail under low memory condition. Being disabled, it can also cause failures without low memory condition, see https://github.com/jemalloc/jemalloc/issues/1328. 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.

解决:

[root@localhost src]# sysctl vm.overcommit_memory=1

需要专业的网站建设服务?

联系我们获取免费的网站建设咨询和方案报价,让我们帮助您实现业务目标

立即咨询