找到我的nginx实际使用的nginx.conf文件(Locate the nginx.conf file my nginx is actually using)

编程入门 行业动态 更新时间:2024-10-12 03:21:07
找到我的nginx实际使用的nginx.conf文件(Locate the nginx.conf file my nginx is actually using)

在安装了两个不同版本的nginx的客户端服务器上工作。 我认为其中一个安装了brew包管理器(它的一个osx框),另一个似乎已经编译和安装了nginx打包的Makefile。 我搜索了服务器上的所有nginx.conf文件,但是这些文件中没有一个定义了在服务器上启动时nginx实际使用的参数。 我不知道的nginx.conf文件在哪里?

Working on a client's server where there are two different versions of nginx installed. I think one of them was installed with the brew package manager (its an osx box) and the other seems to have been compiled and installed with the nginx packaged Makefile. I searched for all of the nginx.conf files on the server, but none of these files define the parameters that nginx is actually using when I start it on the server. Where is the nginx.conf file that I'm unaware of?

最满意答案

通过命令行运行nginx -t将发出测试,并将带有文件路径的输出附加到配置文件(带有错误或成功消息)。

Running nginx -t through your commandline will issue out a test and append the output with the filepath to the configuration file (with either an error or success message).

更多推荐

本文发布于:2023-08-07 11:28:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1464526.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:文件   conf   nginx   Locate   file

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!