大佬帮我看下nginx配置文件放在哪
/usr/local/nginx/https://cdn.dogimg.com/pic/2022/03/31/6245460ebb237.jpghttps://cdn.jsdelivr.net/gh/master-of-forums/master-of-forums/public/images/patch.gif 你这个元老就知道天天水,这么简单的也要问,真丢元老的脸 nginx.conf 就是 nginx.conf /etc/nginx/nginx.conf 可是我新建了一个 test.com.conf 不认啊https://cdn.jsdelivr.net/gh/master-of-forums/master-of-forums/public/images/patch.gif 我操c屌https://cdn.jsdelivr.net/gh/master-of-forums/master-of-forums/public/images/patch.gif 执行 /usr/local/nginx/sbin/nginx -t
会有提示配置文件的路径。
一般就是conf目录下的 nginx.conf nginx 主配置文件
/usr/local/nginx/nginx.conf
nginx 网站配置文件
/usr/local/nginx/conf/domain.conf sudo nginx -t /usr/local/nginx/sbin/nginx -t
会告诉你是哪个主配置文件
再看inlude 里面包含了哪些目录
页:
[1]