当连接数多时,经常出现大量FIN_WAIT1,可以修改/etc/sysctl.conf
====================================
net.ipv4.tcp_fin_timeout = 10
net.ipv4.tcp_keepalive_time = 30
net.ipv4.tcp_window_scaling = 0
net.ipv4.tcp_sack = 0
====================================

运行/sbin/sysctl -p命令使其生效。