我使用node.jsNginx 作为在 Slackware 14.1 上运行的 Web 服务器。
我创建了一个上传文件的页面。在我的开发机器(像 Debian 一样)它工作正常,但在生产(Slackware 服务器)中我得到这个错误/var/log/nginx/error.log:
2015/10/09 15:08:44 [crit] 1231#0: *5 open() "/var/lib/nginx/client_body/0000000003" failed (13: Permission denied), client: 10.0.0.22, server: localhost, request: "POST /home/perfil_usuario/upload HTTP/1.1", host: "aluno.fio.edu.br", referrer: "http://aluno.fio.edu.br/home/perfil_usuario/upload"
Run Code Online (Sandbox Code Playgroud)
并且 Nginx 返回一个500 Internal Server Error.
我搜索并尝试了许多帖子中的修复程序,但错误仍在继续。