Last active
June 15, 2019 14:49
-
-
Save BFDZ/653283b78b94749670a9840e95e50fc7 to your computer and use it in GitHub Desktop.
uwsgi_config.ini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[uwsgi] | |
# 采用sock方式通信,程序在启动时会自己创建这个文件 | |
socket = /tmp/uwsgi.sock | |
pidfile = /tmp/uwsgi.pid | |
vacuum = true | |
# 指向网站目录 | |
chdir = /home/wwwroot/gen.bfdz.ink | |
# python 启动程序文件 | |
wsgi-file = app.py | |
# python 程序内用以启动的 application 变量名 | |
callable = app | |
# 进程数,可按服务器配置和负载情况调高 | |
processes = 3 | |
# 开启master,程序会进入后台运行模式 | |
master = true | |
# 最大请求数,在指定数量的管理请求后重载worker | |
max-requests = 6000 | |
# 指定启动用户 | |
uid = 1001 | |
# 指定用户组 | |
gid = 1001 | |
# 日志路径 | |
daemonize = /var/log/uwsgi.log | |
disable-logging = true | |
vacuum = true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment