解决WARNING Memory overcommit must be enabled! Without it, a background save or replication may fail

解决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.
原因 redis内存不足
解决办法
vim /etc/sysctl.conf
加入
vm.overcommit_memory = 1
/sbin/sysctl -p

你可能感兴趣的:(redis,redis)