網站有時會很卡,能夠先看看哪些ip訪問最多,一行命令就能夠列出來,以下所示bash
netstat -ntu | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n