大飞_dafei

导航

linux安装目录和nginx.conf文件配置目录

linux安装目录和nginx.conf文件配置目录

 

1、查看nginx安装目录

ps -aux | grep nginx   【返回结果包含安装目录】

root       9764  0.0  0.1 124764  1400 ?        Ss   Feb25   0:00 nginx: master process /usr/sbin/nginx -g daemon on; master_process on;
www-data   9765  0.0  0.3 125128  3968 ?        S    Feb25   0:00 nginx: worker process                           
root      10334  0.0  0.2  13692  2176 pts/20   S+   00:43   0:00 grep --color=auto nginx

 

2、nginx -t               【返回结果包含配置文件目录】

nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful

 

posted on 2018-02-26 16:58  大飞_dafei  阅读(96)  评论(0编辑  收藏  举报