redis启动警告解决

vim /etc/rc.local
echo never > /sys/kernel/mm/transparent_hugepage/enabled
加入上面那句到/etc/rc.local,开机启动,并且直接执行上面那句或者sudo /etc/rc.local,直接生效
vim /etc/sysctl.conf
vm.overcommit_memory = 1
net.core.somaxconn = 1024
sysctl -p生效

posted @ 2019-09-17 14:41  zipon  阅读(177)  评论(0编辑  收藏  举报