首页
技术博客
登录
6mi
u
盘
搜
搜 索
技术博客
linux根据端口号找出进程名
linux根据端口号找出进程名
tech
2025-06-16
2
1.使用lsof找出pid
lsof -i:22
2.使用netstat找出pid
#找出非监听端口 netstat -ntp | grep ":22" #找出监听端口 netstat -ntpl | grep ":22"
3.使用ps找出进程名
ps -ef|grep $pid
转载请注明原文地址:https://tech.qufami.com/read-22681.html
最新回复
(
0
)