如题谁有 uwsgi 的配置文件让我参考一下,我的配置老是出现 upstream prematurely closed connection while reading response header from upstream, client 这样的错误。 以下是我自己的配置: [uwsgi] #coding:utf-8
uwsgi 启动时所使用的地址与端口
socket = 127.0.0.1:8001
master = true
指向网站目录
chdir = /obj1/wechat/
profiler = true
enable-threads = true
logdate = true
memory-report=true
limit-as = 6048
daemnize = /obj1/wechat.log
python 启动程序文件
wsgi-file = manage.py
python 程序内用以启动的 application 变量名
callable = app
处理器数
processes = 4
线程数
threads = 2
#状态检测地址 stats = 127.0.0.1:9191
uwsgi_read_timeout = 600
harakiri = 1200
gevent = 100
