当我运行"/etc/init.d/uwsgi start“时,什么都不会发生,终端只会给我一个新的行,没有输出。ps中也没有uswsgi的迹象,/var/log/uwsgi.log是空的。
我在背这条指令:
http://library.linode.com/web-servers/nginx/python-uwsgi/ubuntu-10.10-maverick
发布于 2011-03-05 06:21:09
我发现最好从命令行调试uwsgi。使用可能有用的xml文件格式,或者如果您愿意的话使用.ini文件格式。您还需要一个支持应用程序某种类型的WSGI处理程序的堆栈。django的例子是:
/home/project/django_wsgi.py:
import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()/home/project/uwsgi.xml:
<uwsgi>
<module>django_wsgi</module>
<http>127.0.0.1:8080</http>
<pythonpath>/home/project</pythonpath>
<master/>
<max-requests>5000</max-requests>
</uwsgi>然后测试它:
matt@mcp:~$ uwsgi -x /home/project/uwsgi.xml
您需要最新版本的uwsgi才能运行.96+。
希望这能有所帮助。
https://serverfault.com/questions/208079
复制相似问题