You have two ways to install uwsgi on ubuntu: apt-get or pip
apt-get
if you use apt-get, you need to install the python plugin:
sudo apt-get install uwsgi-plugin-python sudo apt-get install uwsgi
And, in your uwsgi ini file for your site, you need to add this:
plugins=python
you can cp the ini file to /etc/uwsgi/apps-enabled/
and ln -s it to /etc/uwsgi/apps-avaliable/
, then restart the service.
pip
if you use pip, you need to install python-dev first:
sudo apt-get install python-dev sudo pip install uwsgi
And, you don't need the plugins=python in ini file anymore.
网友66.*.*.86[火星]2022-08-13 13:18
网友66.*.*.84[Mountain View]2022-08-13 13:10
网友185.*.*.24[火星]2022-08-13 13:01
网友185.*.*.3[火星]2022-08-13 12:20
发表评论
亲~ 评论内容是必须的哟! o(∩_∩)o
昵称
邮箱
主页
评论