例如查找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
时间: 2024-10-16 23:40:29
例如查找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