chown -R www-data:www-data /var/tmp/nginx/
nginx加载静态js或者图片的时候出现错误:Failed to load resource: net::ERR_CONTENT_LENGTH_MISMATCH
查看nginx的错误日志:
2019/12/16 08:54:58 [crit] 6#6: *23 open() "/var/tmp/nginx/fastcgi/4/00/0000000004" failed (13: Permission denied) while reading upstream, client: 172.24.0.2, server: test.loc, request: "GET /login HTTP/1.1", upstream: "fastcgi://172.28.0.2:9001", host: "test.loc"
给对应的目录加上权限即可:
有话要说