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生效
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生效