找到我的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).
这篇关于找到我的nginx实际使用的nginx.conf文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!