Redis 主从配置的出现的错误
[4400] 27 Nov 18:09:05 # 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.
依照提示修改
/etc/sysctl.conf
然后sysctl vm.overcommit_memory=1
搞定!!!