出现这个报错,检查{前面是否有空格,没有空格则补上,然后重启服务或重载配置既可解决问题。 未经允许不得转载:阿藏博客 » Nginx [emerg] directive “location” has no opening “{” in报错原因