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
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