Django / uWSGI – 给出502状态码的Nginx:error.log表示“权限被拒绝”
我试图设置我的Django应用程序使用uWSGI和Nginx。 我正在学习这个教程: http : //uwsgi-docs.readthedocs.org/en/latest/tutorials/Django_and_nginx.html 我在“使用Unix套接字而不是端口”步骤。 我试过了 uwsgi –socket mysite.sock –wsgi-file test.py 但它没有工作(作为教程怀疑)。 我在看 /var/log/nginx/error.log 它说 2015/05/11 00:20:17 [crit] 1964#0: *13 connect() to unix:///home/a/Documents/CMS/CMS.sock failed (13: Permission denied) while connecting to upstream, client: 127.0.0.1, server: 192.168.174.131, request: "GET / HTTP/1.1", upstream: "uwsgi://unix:///home/a/Documents/CMS/CMS.sock:", host: "127.0.0.1:8000" 当我做 uwsgi –socket mysite.sock –wsgi-file test.py –chmod-socket=666 它工作,但是当我这样做 uwsgi –socket mysite.sock […]