#测试nginx.conf是否正确 nginx -t #输入此命令,通常会输出如下信息 nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: configuration file /etc/nginx/nginx.conf test is successful
通过上面的信息我们可以很明确的知道nginx.conf文件所在路径了.
nginx.conf