根据端口查PID,根据PID查进程名称

1 查询端口占用
lsof -i:50030


2 根据PID查进程名

pe -eLf | grep PID
或者是
ls -l  /proc/PID/exe 这样可以看到.


3 举例

lsof -i:50030
pe -eLf|grep 25406
ps -eLf|grep 25406
ls -l /proc/25406/exe

猜你喜欢

转载自angie.iteye.com/blog/2338568
今日推荐