代码拉取完成,页面将自动刷新
# encoding: utf-8
import multiprocessing
bind = '0.0.0.0:10080'
preload_app = True
# 开启进程
workers = 4
# workers = multiprocessing.cpu_count() * 2 + 1
# 每个进程的开启线程
# threads = multiprocessing.cpu_count() * 2
threads = multiprocessing.cpu_count() * 2
backlog = 2048
#工作模式为meinheld
# pip install meinheld
worker_class = "egg:meinheld#gunicorn_worker"
# debug=True
daemon = True
# 进程名称
proc_name = 'gunicorn.pid'
# 进程pid记录文件
pidfile = '/tmp/UpdateDev.pid.log'
chdir = '/home/runner/UpdateHook'
loglevel = 'info'
logfile = '/tmp/app_UpdateHook_debug.log'
access_log_format = '%(t)s %(p)s %(h)s "%(r)s" %(s)s %(L)s %(b)s %(f)s" "%(a)s"' #设置gunicorn访问日志格式,错误日志无法设置
"""
其每个选项的含义如下:
h remote address
l '-'
u currently '-', may be user name in future releases
t date of the request
r status line (e.g. ``GET / HTTP/1.1``)
s status
b response length or '-'
f referer
a user agent
T request time in seconds
D request time in microseconds
L request time in decimal seconds
p process ID
"""
accesslog = "/tmp/gunicorn_access.log" #访问日志文件
errorlog = "/tmp/gunicorn_error.log"
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。