
本文共 1769 字,大约阅读时间需要 5 分钟。
Gunicorn���������������������������
���������������������������������������Gunicorn������������������������������������������������������������������������������Gunicorn���������������������������������������
������������������
���������������������������Gunicorn���������������������������������������������������gunicorn.conf
������������������manage.py
������������������������������
touch gunicorn.conf
������������������������
import multiprocessing# ���������������preload_app = True# ���������������workers = 5# ���������������������������������������threads = 4# listening���������������������bind = '127.0.0.1:5000'# ������������������daemon = 'false'# ������������worker_class = 'gevent'# ���������������������������worker_connections = 2000# ������������������pidfile = '/var/run/gunicorn.pid'# ���������������������������������accesslog = '/home/tanzhihao/3dview_remote/gunlog/access.log'errorlog = '/home/tanzhihao/3dview_remote/gunlog/error.log'# ������������������������������# loglevel = 'debug'
������������������������Gunicorn
������������������������������������������������������������������������������Gunicorn���������
gunicorn -c gunicorn.conf manage:app
������������
���������������������Python������������������������������Gunicorn���gevent������������
���������������������������������������������������������������������bind
���������������������������IP������������������������
������������Gunicorn���������������������������gevent���sync���thread_workers���������������������������������������������������
������������������������������������������������������������������PID������������������������������������������������������������
������������������������������������������������Gunicorn���������������������������������������������������
发表评论
最新留言
关于作者
