我使用ec2 + uwsgi + django在Amazion AWS上设置网站,使用的指令来自:http://uwsgi.readthedocs.org/en/latest/tutorials/Django_and_nginx.html。它完美的工作,直到我到达了我试图运行与套接字uwsgi的步骤Nginx和uwsgi问题(在EC2上实现)
wsgi --socket mysite.sock --wsgi文件test.py'或'uwsgi --socket mysite.sock --wsgi -file test.py --chmod-socket = 666
(除了http以外,我们还没有使用uwsgi.ini,只是纯粹的命令),我们得到的错误无法打开python文件。不知道为什么会这样
这里是日志:
*** Operational MODE: single process ***
failed to open python file wsgi.py
unable to load app 0 (mountpoint='') (callable not found or import error)
*** no app loaded. going in full dynamic mode ***
*** uWSGI is running in multiple interpreter mode ***
spawned uWSGI worker 1 (and the only) (pid: 32084, cores: 1)
更新
我们使用Ubuntu的机器上相同的程序和它的工作就好了!
你可以发布带日志的错误消息吗? – Rico
刚刚添加了日志请求 – user3257548