连接数

# 获取某个端口上客户端的一共连接数
 netstat -nat|grep -i ":6060"|wc -l
# 获取某个客户端ip连接到该端口的连接数
 netstat -nat|grep -i ":6060"|grep 10.10.10.10 |wc -l
# http协议的连接数
ps -ef|grep httpd|wc -l
#######################################################
匹配远程地址和端口号
ss dst 192.168.25.100
ss dst 192.168.25.100:50460
匹配本地地址和端口号
ss src 192.168.25.140

连接数

原文地址:https://www.cnblogs.com/igoodful/p/11990915.html