netstat -tun | grep -c 9001
公益雷霆在线人数
netstat -nat | grep -i "9001" | wc -l
本文介绍了一种使用 netstat 和 grep 命令组合来统计特定端口在线人数的方法。通过 shell 脚本的形式,可以快速查看指定端口的服务连接数,适用于实时监控服务器负载情况。
netstat -tun | grep -c 9001
公益雷霆在线人数
netstat -nat | grep -i "9001" | wc -l
3678

被折叠的 条评论
为什么被折叠?