Nginx 查看配置文件路径

通过测试信息来间接查看

#测试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文件所在路径了.

原文地址:https://www.cnblogs.com/taadis/p/12126225.html