1234567891011121314151617 |
- # 新建py配置文件gconfig.py
- # 本项目中gunicorn开启多个workers时会影响运行速度
- # gunicorn -c gconfig.py E2CC_server:app test
- bind = "0.0.0.0:10116"
- workers = 3
- threads = 12
- timeout = 600
- worker_class = "gevent" # 'sync'
- daemon = True
- # max_requests = 50000
- # max_requests_jitter = 2
- # debug = True
- # 修改代码时自动重启
- reload = True
|