day11 ss命令 查看网络端口使用情况及对应pid centos7

[root@oldboyedu ~]# ss -lntup
Netid State Recv-Q Send-Q Local Address:Port Peer Address:Port
udp UNCONN 0 0 127.0.0.1:323 *:* users:(("chronyd",pid=908,fd=1))
udp UNCONN 0 0 ::1:323 :::* users:(("chronyd",pid=908,fd=2))
tcp LISTEN 0 128 *:22 *:* users:(("sshd",pid=2540,fd=3))
tcp LISTEN 0 100 127.0.0.1:25 *:* users:(("master",pid=1433,fd=13))
tcp LISTEN 0 128 :::22 :::*
-l list --- 列表显示网络服务信息
-n number --- 以数字方式进行显示
-t tcp --- 网络协议
-u udp --- 网络协议
-p process --- 显示服务进程信息

posted @ 2019-12-19 16:11  差点肌肉  阅读(645)  评论(0编辑  收藏  举报