gunicorn配置文件的启动方式
发布日期:2021-05-10 23:27:38 浏览次数:11 分类:精选文章

本文共 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���������������������������������������������������

    上一篇:https协议部署过程
    下一篇:ubuntu终端使用分屏程序

    发表评论

    最新留言

    逛到本站,mark一下
    [***.202.152.39]2025年04月01日 21时20分12秒