lsof -i [46][protocol][@hostname|hostaddr][:service|port]
例子:
查看本机8000端口
lsof -i :8000
查看本机TCP10000端口
lsof -i TCP@localhost:10000
查看端口对应的程序
最新推荐文章于 2023-07-20 21:20:47 发布
lsof -i [46][protocol][@hostname|hostaddr][:service|port]
例子:
查看本机8000端口
lsof -i :8000
查看本机TCP10000端口
lsof -i TCP@localhost:10000