根据端口号查找进程号查找程序路径

netstat -nlp | grep 端口号

如下图所示,查询28180端口对应的进程PID-netstat -nlp | grep 28180

得到的8161就是进程PID

然后通过下面命令查询对应的程序路径

ll /proc/进程号/cwd

猜你喜欢

转载自www.cnblogs.com/noteless/p/11455170.html