You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
673 B

# 项目目录
chdir = '/www/python/yunwei/yunwei'
# 指定进程数
workers = 4
# 指定每个进程开启的线程数
threads = 2
#启动用户
user = 'www'
# 启动模式
worker_class = 'sync'
# 绑定的ip与端口
bind = '0.0.0.0:5000'
# 设置进程文件目录(用于停止服务和重启服务,请勿删除)
pidfile = '/www/python/yunwei/yunwei/gunicorn.pid'
# 设置访问日志和错误信息日志路径
accesslog = '/www/wwwlogs/python/yunwei/gunicorn_acess.log'
errorlog = '/www/wwwlogs/python/yunwei/gunicorn_error.log'
# 日志级别,这个日志级别指的是错误日志的级别,而访问日志的级别无法设置
loglevel = 'info'