Created
November 12, 2013 07:45
-
-
Save xiocode/7427113 to your computer and use it in GitHub Desktop.
有用的网站
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://huoding.com/2012/01/19/142 关于timewait的解决方案 |
vi /etc/sysctl.conf
net.ipv4.tcp_syncookies = 1
net.ipv4.tcp_tw_reuse = 1
net.ipv4.tcp_tw_recycle = 1
net.ipv4.tcp_fin_timeout = 30
net.ipv4.tcp_max_tw_buckets = 10000
/sbin/sysctl -p
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
netstat -an | awk '/^tcp/ {++S[$NF]} END {for(a in S) print a, S[a]}'