首页
学习
活动
专区
圈层
工具
发布
社区首页 >专栏 >查找 nginx的配置文件的路径

查找 nginx的配置文件的路径

作者头像
xiny120
发布于 2019-06-11 11:15:52
发布于 2019-06-11 11:15:52
5.7K0
举报
文章被收录于专栏:毛毛v5毛毛v5

linux蛋疼,配置文件位置满天飞。搞不清在哪里。可以按如下方法尝试:

代码语言:javascript
复制
[root@izuf693wyms6h7ot360phcz /]# find / -name nginx.conf
/etc/nginx/nginx.conf
[root@izuf693wyms6h7ot360phcz /]# /usr/sbin/nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
[root@izuf693wyms6h7ot360phcz /]#

看来一般的默认配置文件在/etc目录下面的app名称路径。

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2019.06.04 ,如有侵权请联系 cloudcommunity@tencent.com 删除
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档