在安装了两个不同版本的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).
更多推荐
发布评论