1、netstat -na   查看所有的活动链接

2、netstat -an |grep :80 | sort 查看所有80端口的链接,并排序,如果某ip大量链接,可能为攻击

3、netstat -n -p