我使用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