尝试在http独立模式下运行uWSGI,配置ini:
[uwsgi]
chdir = /Users/gino/Workspace/project
module = project.wsgi:application
home = /Users/gino/VirtualEnv/project
processes = 2
plugins = python, http
pidfile = /tmp/project.pid
http = 127.0.0.1:8080 此配置将在uwsgi中运行django项目。
我运行命令uwsgi --ini project.ini,我得到了这个错误:
!!! UNABLE to load uWSGI plugin: dlopen(/usr/local/Cellar/uwsgi/2.0.8/libexec/uwsgi/http_plugin.so, 10):
Symbol not found: _uwsgi_opt_corerouter
Referenced from: /usr/local/Cellar/uwsgi/2.0.8/libexec/uwsgi/http_plugin.so
Expected in: dynamic lookup
!!!因此,我无法在浏览器中访问http://127.0.0.1:8080。如果我使用带套接字的uwsgi,并使用nginx作为http服务器,它工作得很好。
我怎么才能修复它?谢谢。
系统: Mac 10.10 uWSGI: brew install uwsgi
注意:如果你通过python pip安装uwsgi,你应该不会遇到这个问题。
发布于 2014-12-18 14:16:51
删除plugins条目。
http服务器嵌入在uwsgi http://uwsgi-docs.readthedocs.org/en/latest/HTTP.html中。
Python不需要作为插件
请参阅文档here
https://stackoverflow.com/questions/27540187
复制相似问题