uwsgi 遇到比较多的一个问题
错误信息
1
2
3
4
5
6
7*** Operational MODE: single process ***
*** no app loaded. going in full dynamic mode ***
*** uWSGI is running in multiple interpreter mode ***
spawned uWSGI master process (pid: 14105)
spawned uWSGI worker 1 (pid: 14108, cores: 1)
-- unavailable modifier requested: 0 --
-- unavailable modifier requested: 0 --
错误分析
这个其实是因为python映射的问题,加一个插件就好了
解决方案
1
2apt-get install uwsgi-plugin-python3 # python3
apt-get install uwsgi-plugin-python #python21
2plugin = python3 # python3
plugin = python # python1
2uwsgi --plugin python3 uwsgi.ini # python3
uwsgi --plugin python uwsgi.ini # python2