Linux查看Nginx或者其他程序的安装目录

来源:互联网 发布:阿里云的产品好吗 编辑:程序博客网 时间:2024/05/17 06:49
root@iZ23p7x4avmZ:~# ps -ef|grep nginxroot       828     1  0 May18 ?        00:00:00 nginx: master process /alidata/server//nginx/sbin/nginx -c /alidata/server//nginx/conf/nginx.confwww        866   828  0 May18 ?        00:28:44 nginx: worker process                                                      root      2319   432  0 12:03 pts/0    00:00:00 grep --color=auto nginx

master process 对应的目录 就是安装路径

 /alidata/server//nginx/sbin/


同样方法查看比如tomcat的安装路径

0 0