linux 查看端口的使用情况

linux下,可以通过natstat命令来查看端口的连接状况,比如连接数

例如,查看12336端口的连接状况:

查看某个端口上的连接数
netstat -nat | grep -iw "12336" | wc -l

查看有哪些连接在该端口上

netstat -nat | grep -iw "12336"

猜你喜欢

转载自blog.csdn.net/wsgytwsgyt/article/details/83584464