阿小信大人的头像
Talk is cheap. Show me the code. Linus Torvalds

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#  
分享到:
阅读[973] 评论[0]

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

本文最近访客

发表评论