根据端口号查看进程PID:

netstat -nlp | grep 端口号

根据进程PID查对应的程序路径:

ll /proc/进程PID/pwd

结束!