正在对Linux服务器进行性能监控和调优,请问ss如何匹配本地地址和端口号?
ss src 192.168.0.197 ss src 192.168.0.197:http ss src 192.168.0.197:80 ss src 192.168.0.197:smtp ss src 192.168.0.197:25
ss src 192.168.0.197
ss src 192.168.0.197:http
ss src 192.168.0.197:80
ss src 192.168.0.197:smtp
ss src 192.168.0.197:25
参考执行结果
# ss src 172.16.5.9
Netid State Recv-Q Send-Q Local Address:Port Peer Address:Port
udp ESTAB 0 0 172.16.5.9:37602 100.100.3.3:ntp
tcp ESTAB 0 0 172.16.5.9:6379 172.19.0.22:43916
tcp ESTAB 0 0 172.16.5.9:6379 172.19.0.22:43852
tcp ESTAB 0 0 172.16.5.9:52924 172.16.5.9:sun-sr-https
tcp ESTAB 0 0 172.16.5.9:6379 172.19.0.25:33426
tcp ESTAB 0 0 172.16.5.9:6379 172.19.0.25:33482
tcp ESTAB 0 0 172.16.5.9:50844 10.96.0.1:https
tcp ESTAB 0 0 172.16.5.9:53720 172.16.5.9:sun-sr-https
tcp ESTAB 0 0 172.16.5.9:6379 172.19.0.22:43924
tcp ESTAB 0 0 172.16.5.9:6379 172.19.0.25:33442
tcp ESTAB 0 0 172.16.5.9:53150 172.16.5.9:sun-sr-https
tcp ESTAB 0 0 172.16.5.9:6379 172.19.0.25:33498
tcp ESTAB 0 0 172.16.5.9:37250 172.16.2.14:http
tcp ESTAB 0 0 172.16.5.9:6379 172.19.0.22:43844
tcp ESTAB 0 0 172.16.5.9:35732 172.16.5.9:sun-sr-https
tcp ESTAB 0 0 172.16.5.9:6379 172.19.0.22:43940
tcp ESTAB 0 0 172.16.5.9:6379 172.19.0.25:33410
tcp ESTAB 0 0 172.16.5.9:39884 172.16.5.9:2379
tcp ESTAB 0 0 172.16.5.9:53018 172.16.5.9:sun-sr-https
tcp ESTAB 0 0 172.16.5.9:2379 172.16.5.9:39884
tcp ESTAB 0 0 172.16.5.9:6379 172.19.0.25:33490
tcp ESTAB 0 0 172.16.5.9:37800 100.100.30.25:http
tcp ESTAB 0 0 172.16.5.9:40022 172.16.10.244:50225
tcp ESTAB 0 0 172.16.5.9:6379 172.19.0.25:33438
tcp ESTAB 0 0 172.16.5.9:6379 172.19.0.25:33506
tcp ESTAB 0 0 172.16.5.9:53058 172.16.5.9:sun-sr-https
tcp ESTAB 0 0 172.16.5.9:6379 172.19.0.25:33418
tcp ESTAB 0 0 172.16.5.9:6379 172.19.0.22:43860
您好,参考命令如下:
ss src 192.168.0.197
ss src 192.168.0.197:http
ss src 192.168.0.197:80
ss src 192.168.0.197:smtp
ss src 192.168.0.197:25
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。