我曾经在一家安装了 uwsgi 1.9.6 的公司工作,init 脚本如下所示:
exec /usr/local/bin/uwsgi --enable-threads --single-interpreter --emperor /etc/uwsgi/vassals --buffer-size 65536 --signal-bufsize 2097152 --logto $LOGTO --disable-logging
我试图在我的服务器上设置一个uwsgi安装,版本是1.9.18.2,一些选项--enable-threads --single-interpreter --signal-bufsize
在init命令中无效,它们只在每个app.ini中有效,如下所示:
[uwsgi]
socket = /tmp/%n.sock
master = true
processes = 5
env = DJANGO_SETTINGS_MODULE=abc.settings
module = django.core.handlers.wsgi:WSGIHandler()
pythonpath = /var/www/abc/abc
chdir = /var/www/abc/abc
chmod-socket = 666
uid = www-data
virtualenv = /var/www/abc
#buffer-size = 32768
vacuum = true
procname-prefix-spaced = %n
cheaper = 1
plugins = python
enable-threads = true
single-interpreter = true
sharedarea = 4
signal-bufsize = 2097152
我只是想知道这是否正常?