Uwsgi 设置问题

Uwsgi 设置问题

我有一个如下所示的 uwsgi ini:

[uwsgi]

socket = :8001
processes = 4
master = true
wsgi-file = /project/dev/myproject/conf/deployment/wsgi/dev/myproject-site.wsgi
harakiri = 30
daemonize = /logs/log/myproject/myproject-uwsgi.log
uid = www-data
gid = www-data
plugins-dir = /usr/lib/uwsgi/plugins
plugins = python34

我似乎在加载 python34 插件时遇到了问题:

found fd 3 mapped to socket 0 (:8001)
running /usr/local/bin/uwsgi
*** has_emperor mode detected (fd: 5) ***
[uWSGI] getting INI configuration from /project/dev/myproject/conf/deployment/wsgi/dev/myproject.ini
open("./python34_plugin.so"): No such file or directory [core/utils.c line 3675]
!!! UNABLE to load uWSGI plugin: ./python34_plugin.so: cannot open shared object file: No such file or directory !!!
*** Starting uWSGI 2.0.8 (64bit) on [Tue Nov 18 09:08:10 2014] ***
compiled with version: 4.8.2 on 18 November 2014 08:18:15

但是,该文件似乎位于我告诉它查找的位置:

me@BF-WEB02:/usr/lib/uwsgi/plugins$ ls -l /usr/lib/uwsgi/plugins/python34_plugin.so 
-rw-r--r-- 1 root root 165216 Mar 23  2014 /usr/lib/uwsgi/plugins/python34_plugin.so

我最初使用 pip 安装了 uwsgi。提前谢谢您。

答案1

这与问题使用 uwsgi 提出并解释如下:

你在 /usr/local 中有 uwsgi,而在 /usr 中有插件,这看起来不对,看起来像是你安装了两个 uwsgi 并将它们混合在一起

解决方案是决定使用哪个二进制文件,并坚持使用。只要不尝试从已安装的 uwsgi 构建中加载/usr/已安装的插件,问题就会消失。/usr/local/

相关内容