查看tcp链接数:
netstat -anltp | grep -w ESTABLISHED | wc -l
查看tcp半链接状态数:
netstat -anltp | grep -w TIME_WAIT | wc -l