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

posted @ 2017-02-17 09:56  taadis  阅读(107)  评论(0编辑  收藏  举报