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

netstat -nlp | grep 端口号进程

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

获得的8161就是进程PID程序

而后经过下面命令查询对应的程序路径im

ll /proc/进程号/cwd查询

相关文章
相关标签/搜索