Linux TCP/IP parameter optimization sysctl.conf

 

View the number of TIME_WAIT connections

netstat -an | grep TIME_WAIT -wc

 

Quickly close TIME_WAIT connections

vi /etc/sysctl.conf

net.ipv4.tcp_tw_recycle = 1

net.ipv4.tcp_tw_reuse = 1

take effect

sysctl -p

or

sysctl -p /etc/sysctl.conf

 

refer to:

Linux kernel TCP/IP, Socket parameter tuning

http://blog.csdn.net/beyondlpf/article/details/52871932

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326296305&siteId=291194637