我读了this,如果我使用:
uwsgi --socket mysite.sock --module mysite.wsgi --chmod-socket=666
一切正常。然后我创建mysite_uwsgi.ini
:
# mysite_uwsgi.ini file
[uwsgi]
# Django-related settings
# the base directory (full path)
chdir = /path/to/your/project
# Django's wsgi file
module = project.wsgi
# the virtualenv (full path)
home = /path/to/virtualenv
# process-related settings
# master
master = true
# maximum number of worker processes
processes = 10
# the socket (use the full path to be safe
socket = /path/to/your/project/mysite.sock
# ... with appropriate permissions - may be needed
chmod-socket = 666
# clear environment on exit
vacuum = true
并尝试:
uwsgi --ini mysite_uwsgi.ini
没有nginx的错误消息,但在浏览器中 - 内部服务器错误。
问题是什么?怎么解决?感谢。