您的位置:首页 > 运维架构 > Linux

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

2017-11-06 18:00 399 查看
#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

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: