📜  linux 查询 pid 使用的端口 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:51:23.201000             🧑  作者: Mango

代码示例2
$ sudo ss -lptn 'sport = :80'
State   Local Address:Port  Peer Address:Port              
LISTEN  127.0.0.1:80        *:*                users:(("nginx",pid=125004,fd=12))
LISTEN  ::1:80              :::*               users:(("nginx",pid=125004,fd=11))