1.chmod u+r xxx 给文件授权
2.查看nginx的配置,看首行配置:
是否是user root,如果不是,比如user nginx,那么检查静态文件是否在root/xxx/xxxx 下,考虑将静态文件换到别的目录,比如/srv/xxxx,
或者将改为user root