netstat -nlp | grep 端口号进程
以下图所示,查询28180端口对应的进程PID-netstat -nlp | grep 28180grep
获得的8161就是进程PID程序
而后经过下面命令查询对应的程序路径im
ll /proc/进程号/cwd查询