nginx+uWSGI配置遇到upstream prematurely closed connection while reading response header from upstream错误的解决方法:
1、使用配置文件,不要直接在命令行中运行uWSGI;
2、添加plugins=python到uWSGI的配置文件中;
实例如下:
[uwsgi]
vhost = false
plugins = python
socket = 127.0.0.1:9090
master = true
enable-threads = true
workers = 1
wsgi-file = /usr/lib/python2.7/site-packages/swift/proxy/server.py
paste=config:/etc/swift/proxy-server.conf
把Nginx+uWSGI+Swift Proxy_server对接,牛~
uwsgi -i /etc/uwsgi.ini
安装python_plugin.so,只能手动执行编译
1、cd uwsgi
2、vim buildconf/core.ini 添加
bin_name = /usr/bin/uwsgi
plugin_dir = /usr/lib64
3、python uwsgiconfig.py --plugin plugins/python core