方法: 使用 nginx -t 命令
nginx -t
如果一切正常, 则会显示:
怎样测试nginx.conf配置文件的正确性
原文:https://www.cnblogs.com/aisowe/p/11597413.html