meinheld专题

bottle的gunicorn+gevent部署 和 gunicorn+meinheld 部署

config.py(gunicorn+gevent): # -*-coding:utf-8 -*-__author__ = "ZJL"import gevent.monkeyimport multiprocessinggevent.monkey.patch_all()# 监听本机的5000端口bind = '0.0.0.0:5000'preload_app = True# 开启进程# wo

flask+gunicorn+meinheld部署

configm.py: # -*-coding:utf-8 -*-__author__ = "ZJL"import multiprocessing# 监听本机的5000端口bind = '0.0.0.0:5000'preload_app = True# 开启进程# workers=4workers = multiprocessing.cpu_count() * 2 + 1# 每个进程的