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