Check the PID according to the port, check the process name according to the PID

1 Check the port occupancy
lsof -i:50030


2 Check the process name according to the PID

pe -eLf | grep PID
or
ls -l /proc/PID/exe This can be seen.


3 For example

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

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326444742&siteId=291194637