【发布时间】:2014-03-31 18:48:36
【问题描述】:
我正在使用 ec2 + uwsgi + django 在 Amazion AWS 上建立网站,使用来自:http://uwsgi.readthedocs.org/en/latest/tutorials/Django_and_nginx.html 的说明。在我尝试使用套接字运行 uwsgi 之前,它可以完美运行
wsgi --socket mysite.sock --wsgi-file 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 机器上使用了相同的程序,结果很好!
【问题讨论】:
-
您可以将错误消息与日志一起发布吗?
-
按要求添加日志
标签: python sockets nginx amazon-ec2