Linux下根据进程ID查看进程文件的路径
linux-dash
A beautiful web dashboard for Linux
项目地址:https://gitcode.com/gh_mirrors/li/linux-dash

·
最近遇到一个问题,同事写得一个jar程序,在生产环境下出错了,他打电话让我给他重启一下,当时是我还不清楚他jar包放在哪个路径下的,只知道包名xxxxx.jar.
这个时候我通过ps -aux |grep xxxx.jar 找到进程PID
这里有两种方法可以使用
1. 执行命令:pwdx PID 命令,就得到进程jar包所在的位置
2.执行命令:ll /proc/PID/cwd 命令,也能得到进程jar包所在的位置




A beautiful web dashboard for Linux
最近提交(Master分支:19 天前 )
186a802e
added ecosystem file for PM2 5 年前
5def40a3
Add host customization support for the NodeJS version 5 年前
更多推荐
所有评论(0)