3 Star 0 Fork 0

张利利 / diningPos

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
gunicorn.conf 624 Bytes
一键复制 编辑 原始数据 按行查看 历史
zll 提交于 2021-10-20 11:13 . 方便docker部署做的更改
# gunicorn.conf
# 并行工作进程数, 通常推荐的worker数量是:(2 x $num_cores) + 1
workers = 4
# 指定每个工作者的线程数
threads = 2
# 监听内网端口
bind = '0.0.0.0:5000'
# 是否以守护进程启动, 默认false; 将进程交给supervisor管理
daemon = 'false'
# 工作模式协程
worker_class = 'gevent'
# 设置最大并发量
worker_connections = 2000
# 设置进程文件目录
pidfile = '/var/run/gunicorn.pid'
# 设置访问日志和错误信息日志路径
accesslog = '/var/log/gunicorn_acess.log'
errorlog = '/var/log/gunicorn_error.log'
# 设置日志记录水平
loglevel = 'error'
Python
1
https://gitee.com/ll.zhangll/dining-pos.git
git@gitee.com:ll.zhangll/dining-pos.git
ll.zhangll
dining-pos
diningPos
master

搜索帮助