检测是否有DDOS攻击
netstat -ntu|awk '{print $5}' | cut -d:-f4|sort|uniq -c|sort -n
如果发现某个IP连接数据上百个的链接,说明就有DDOS攻击.