用命令检查nginx配置文件语法是否正确

用命令检查nginx配置文件语法是否正确,第1张

用命令检查nginx配置文件语法是否正确

nginx -tc 你要检测的配置文件的路径

D:softwarenginxnginx-1.20.1>nginx -tc ./conf/nginx.conf
nginx: the configuration file ./conf/nginx.conf syntax is ok
nginx: configuration file ./conf/nginx.conf test is successful

正确的情况

有误的情况有:

 

 

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/zaji/5067164.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-11-16
下一篇2022-11-16

发表评论

登录后才能评论

评论列表(0条)

    保存