在Debian Buster Docker容器中,我首先安装了python3、python3-pip和python-venv,它允许我使用以下命令创建Python3.7.3venv
python3 -m venv ./venv_name我以典型的方式激活它。在内部,我使用
pip install uwsgi安装uWSGI (本例中为2.0.19.1版)。我有一个uwsgi.ini文件,其中包含:
[uwsgi]
strict = true
master = true
http-auto-chunked = true
http-keepalive = 1
http-auto-gzip = true
http-timeout = 360当我尝试从命令行启动uwsgi时:
uwsgi --ini uwsgi.ini我得到了错误:
[strict-mode] unknown config directive: http-auto-gzip是什么导致了这个错误?一些搜索表明它与缺少的插件有关,但也表明http插件嵌入在pip安装中。我尝试通过添加以下内容来显式命名该插件
plugins = http添加到ini文件,但这会导致以下错误:
!!! UNABLE to load uWSGI plugin: ./http_plugin.so: cannot open shared object file: No such file or directory !!!发布于 2021-08-27 13:53:29
基于the source code here仅当使用UWSGI_ZLIB标志编译uWSGI时,http-auto-gzip才可用。
在安装(编译) uWSGI时,您需要安装zlib1g-dev Ubuntu包。
https://stackoverflow.com/questions/68954352
复制相似问题