码迷,mamicode.com
首页 > 系统相关 > 详细

CentOS7(linux) 通过服务名查询安装目录

时间:2017-11-06 19:06:12      阅读:231      评论:0      收藏:0      [点我收藏+]

标签:目录   bsp   inux   --   block   style   sbin   grep   linu   

 

#ps aux|grep nginx

root 1231 0.0 0.0 46336 956 ? Ss 04:21 0:00 nginx: master process /usr/sbin/nginx -c /etc/nginx/nginx.conf
nginx 1232 0.0 0.2 46808 2144 ? S 04:21 0:00 nginx: worker process
root 1247 0.0 0.0 112660 972 pts/0 R+ 04:56 0:00 grep --color=auto nginx

# ls -l /proc/1231/exe

lrwxrwxrwx. 1 root root 0 Nov 6 04:24 /proc/1231/exe -> /usr/sbin/nginx

 

CentOS7(linux) 通过服务名查询安装目录

标签:目录   bsp   inux   --   block   style   sbin   grep   linu   

原文地址:http://www.cnblogs.com/xiaoruilin/p/7794429.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!