nginx快速查看配置文件的方法
[root@tianyun ~]# ps aux|grep nginx
root 5726 0.0 0.0 20544 828 ? Ss 11:43 0:00 nginx: master process /usr/local/nginx/sbin/nginx
nobody 10531 0.0 0.0 23076 1676 ? S 13:22 0:00 nginx: worker process
[root@tianyun ~]# /usr/local/nginx/sbin/nginx -t
nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful
配置文件为:/usr/local/nginx/conf/nginx.conf

浙公网安备 33010602011771号