ss -ntlp
输出:
State Recv-Q Send-Q Local Address:Port Peer Address:Port
LISTEN 0 128 *:22 *:*
LISTEN 0 100 127.0.0.1:25 *:*
LISTEN 0 50 [::]:8080 [::]:* users:(("java",pid=22175,fd=8))
LISTEN 0 100 [::1]:25 [::]:*
LISTEN 0 100 [::]:8081 [::]:* users:(("java",pid=409,fd=62))
LISTEN 0 100 [::]:8082 [::]:*
标签:25,java,查看,端口,Address,pid,Linux,100,LISTEN
From: https://www.cnblogs.com/jiayuan2006/p/18382769