nginx报错“server“ directive is not allowed here in /etc/nginx/:时间:2025-03-18 20:49:12需要看一下你的nginx配置了里,http有没有加 如下: http{ sever{} }