启动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