例如查找nginx所在绝对路径
首先找出进程ID:
ps aux|grep nginx
# ls -l /proc/29419/exe
lrwxrwxrwx 1 root root 0 Mar 11 15:32 /proc/29419/exe -> /data/ops/app/tengine-2.1.0/sbin/nginx
本文出自 “吾心” 博客,请务必保留此出处http://leeforget.blog.51cto.com/6950397/1619391
例如查找nginx所在绝对路径
首先找出进程ID:
ps aux|grep nginx
# ls -l /proc/29419/exe
lrwxrwxrwx 1 root root 0 Mar 11 15:32 /proc/29419/exe -> /data/ops/app/tengine-2.1.0/sbin/nginx
本文出自 “吾心” 博客,请务必保留此出处http://leeforget.blog.51cto.com/6950397/1619391