uwsgi options --wsgi-file and --module not recognized

瘦欲@ 提交于 2019-12-03 09:53:30

This means that the python plugin for uWSGI isn't installed or loaded. To verify run:

$ uwsgi --plugins-list

In general if you have build-essential python-dev etc., you can install via:

$ pip install uwsgi

On Debian or Ubuntu you can also install it via:

$ apt-get install uwsgi-plugin-python

On Linux Alpine you currently have to specify where it is:

$ apk add --update uwsgi-python
$ uwsgi --plugins-dir /usr/lib/uwsgi/ --need-plugin python --plugins-list
*** uWSGI loaded generic plugins ***

*** uWSGI loaded request plugins ***
0: python
...

Alternatively you can specify its full path via:

$ uwsgi --plugin /usr/lib/uwsgi/python_plugin.so --plugins-list

Depending how you installed uwsgi also might also need to install the python plugin. e.g.

apt-get install uwsgi-plugin-python
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!