查看所有80端口的连接数 netstat -nat|grep -i “80”|wc -l 对连接的IP按连接数量进行排序 netstat -ntu | awk ‘{print $5}’ | cut -d: -f1 | sort | uniq -c | sort -n 查看TCP连接状态 netstat -nat |awk ‘{print $6}’|sort|uniq -c|sort -r
Copyright © 2005-2024 51CTO.COM 版权所有 京ICP证060544号