linux下查看本机socket端口详细信息

netstat -paut

[root@OA-JRY-SY-FDEP1 nginx-1.9.]# netstat -paut
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp *: *:* LISTEN /nginx
tcp *:ssh *:* LISTEN /sshd
tcp 192.168.72.245: 192.168.72.10: ESTABLISHED /nginx
tcp 192.168.72.245:ssh 192.168.72.10:spock ESTABLISHED /sshd
tcp 192.168.72.245: 192.168.72.10: ESTABLISHED /nginx
tcp 192.168.72.245:ssh 192.168.72.10:sdo-tls ESTABLISHED /sshd
tcp 192.168.72.245: 192.168.72.10: TIME_WAIT -
tcp *:ssh *:* LISTEN /sshd
[root@OA-JRY-SY-FDEP1 nginx-1.9.]#
上一篇:java实现a+b的多重输入


下一篇:【Linux编程】存储映射I/O