我使用 pip install uwsgi
安装了 uwsgi。
当我运行 uwsgi 时,我遇到了一些错误。我正在运行的命令是 uwsgi --master --emperor/etc/uwsgi/apps-enabled --die-on-term --uid www-data --gid www-data
。
看来我缺少 http 和 python 插件:
[uWSGI] getting INI configuration from component_tracking_test.ini open("./http_plugin.so"): No such file or directory [core/utils.c line 3347] !!! UNABLE to load uWSGI plugin: ./http_plugin.so: cannot open shared object file: No such file or directory !!! open("./python_plugin.so"): No such file or directory [core/utils.c line 3347] !!! UNABLE to load uWSGI plugin: ./python_plugin.so: cannot open shared object file: No such file or directory !!! [emperor] removed uwsgi instance component_tracking_test.ini
如果我已经通过 pip 安装了 uwsgi,我该如何安装所需的插件?
最佳答案
当我在命令中添加“--binary-path/usr/local/bin/uwsgi”(更改 wsgi bin 的路径)时,错误消失了。
来自 docu
binary-path Argument: string
Force binary path.
If you do not have uWSGI in the system path you can force its path with this option to
permit the reloading system and the Emperor to easily find the binary to execute.
关于python - 使用 'pip' 使用插件安装 uwsgi,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16406944/