vim /etc/sysctl.conf
#修改参数如下:
net.ipv4.tcp_keepalive_time = 1200
net.ipv4.tcp_keepalive_probes = 5
net.ipv4.tcp_keepalive_intvl = 15
net.ipv4.tcp_max_syn_backlog = 16384
net.core.somaxconn = 65535
net.ipv4.tcp_tw_reuse = 1
net.ipv4.tcp_tw_recycle = 1
net.ipv4.tcp_syncookies = 1
本文转自 freeterman 51CTO博客,原文链接:http://blog.51cto.com/myunix/2060146,如需转载请自行联系原作者