阿小信大人的头像
Where there is a Python, there is a way. 阿小信大人

Two ways to install uwsgi2015-04-02 10:22

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.

如果您觉得从我的分享中得到了帮助,并且希望我的博客持续发展下去,请点击支付宝捐赠,谢谢!

若非特别声明,文章均为阿小信的个人笔记,转载请注明出处。文章如有侵权内容,请联系我,我会及时删除。

#Linux/Mac#  
分享到:
阅读[1151] 评论[0]

你可能也感兴趣的文章推荐

本文最近访客

网友54.*.*.54[弗吉尼亚州]2018-05-27 11:36
网友194.*.*.118[法国]2018-05-27 11:18
网友66.*.*.79[美国]2018-05-27 11:17
网友54.*.*.56[法国]2018-05-27 10:51

发表评论