当 uWSGI 启动时,它会写
"ImportError: No module named wsgi"
我的 uwsgi.xml
<!-- UWSGI XML Configuration File -->
<uwsgi>
<uid>quux</uid>
<gid>quux</gid>
<chdir>/var/www</chdir>
<!-- <socket>/var/www/uwsgi.sock</socket> -->
<socket>127.0.0.1:8012</socket>
<!-- <home>/home/klen/Projects/klen.github.com/_code/uwsgi/.virtualenv</home> -->
<plugins>python</plugins>
<pythonpath>/var/www/</pythonpath>
<module>wsgi</module>
<env>/usr/bin/python</env>
<processes>2</processes>
<max-requests>5000</max-requests>
<buffer-size>32768</buffer-size>
<harakiri>30</harakiri>
<reload-mercy>8</reload-mercy>
<master />
<no-orphans />
</uwsgi>
服务器回复浏览器:
"uWSGI Error
Python application not found"
并放
"[pid: 7529|app: -1|req: -1/1] 178.132.203.33 () {46 vars in 797 bytes} [Mon Mar 26 00:56:53 2012] GET /index.py => generated 48 bytes in 0 msecs (HTTP/1.0 500) 2 headers in 63 bytes (0 switches on core 0)"
在它的日志文件中。
我想我需要为 uWSGI 安装 wsgi 模块,因为它写“ImportError:没有名为 wsgi 的模块”。如何检查此模块是否已安装?