查看服务器每IP的连接数,用于检测DDOS
netstat -ntu | awk'{print $5}' | cut-d: -f1 | sort| uniq -c | sort -n
2 199.87.229.20
3 120.43.25.94
3 218.30.103.142
3 61.135.169.47
4 110.81.18.140
8 59.58.136.94
20 192.151.148.226
47 219.157.16.254
T人,把其他人从服务器中踢出去
1
2
3
4
5
w #查看谁在线
15:44:27 up 22 days, 7:16, 1 user, load average: 0.02, 0.09, 0.10
USER...