获取确定端口的连接数

时间:2022-08-14 18:12:03

Looking for a linux function that returns the count of connections in a port.

寻找一个返回端口连接数的linux函数。

Was researching about the "lsof", but it only prints connections in a door, and does not return the sum of all connections, for example: if I have two connections at port 80, it will return 2, and not the connections.

正在研究“lsof”,但它只在门上打印连接,并且不返回所有连接的总和,例如:如果我在端口80有两个连接,它将返回2,而不是连接。

1 个解决方案

#1


0  

Did you try netstat?

你试过netstat吗?

#1


0  

Did you try netstat?

你试过netstat吗?