[uwsgi]
socket = /tmp/project.sock # nginx 配置的sock
chdir = ~/project_dir/project/
module = manage
callable = app
workers = 1
master = True
vacuum = True
plugins = python3
enable-threads = True
threads = 20
max-requests = 50000
disable-logging = True
virtualenv = ~/virtualenvs/project/
touch-reload = ~/project_dir/project/reload
chmod-socket = 666
harakiri = 10 # 如果一个请求花费的时间超过了这个harakiri超时时间10秒,那么这个请求都会被丢弃,并且当前处理这个请求的工作进程会被回收再利用
ignore-write-errors = True
#uwsgi后台运行,日志写到uwsgi.log
daemonize = ~/log/project/uwsgi.log
uwsgi基础配置
最新推荐文章于 2022-02-14 23:41:06 发布