linux下如何查找nginx配置文件的位置

linux下如何查找nginx配置文件的位置,方法如下:

先找出nginx可执行文件的路径

ps -ef | grep nginx

  

返回
[root@localhost /data/nginx/logs 09:47:00&&23]#ps -ef | grep nginx
root 1734 1 0 Oct28 ? 00:00:00 nginx: master process /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf

那么/usr/local/nginx/conf/nginx.conf就是配置文件了

posted @ 2017-12-03 09:07  catlee  阅读(71349)  评论(1编辑  收藏  举报