Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何计算连接到我的(远程)服务器上指定端口的所有连接(客户端)?
假设端口号是:3306(MySQL 端口),那么如何计算同时连接到该端口的客户端数量?
3306
看,我知道我会在 linux 中这样做: netstat -anp | grep ":3306.*ESTABLISHED" | wc -l
netstat -anp | grep ":3306.*ESTABLISHED" | wc -l
我希望它也能在 FreeBSD 中工作......让我知道结果!