Update uWSGI to the latest version on Ubuntu 12.04 LTS Precise Pangolin

原文地址:http://www.julianbez.com/blog/2013/07/23/update-uwsgi-to-the-latest-version-on-ubuntu-12-04-lts-precise-pangolin/




You sure know this problem: You run a stable Ubuntu version and the package you want is slightly older than the one advertised on the project’s site. So what, you install it via apt-get and that’s it. Well sometimes, that might not be the best idea.

The Ubuntu uWSGI package is on version 1.0.3. So when I had some tough problems last week I thought it was best to update from the Ubuntu version to the latest version 1.9.14. Here’s how:

Thankfully, uWSGI can be installed via PIP:
sudo pip install uwsgi
1
    
sudo pip install uwsgi

It installs in /usr/local/bin/uwsgi, but the version you probably have uses /usr/bin/uwsgi. No problem, just redo the symlink to the newer uwsig:
sudo ln -fs /usr/local/bin/uwsgi /usr/bin/uwsgi
1
    
sudo ln -fs /usr/local/bin/uwsgi /usr/bin/uwsgi

One more thing: Because the PIP version of uWSGI has python already included, remove any plugins=python lines from your uWSGI config files.

That should be it. Stop all uwsgi processes (check ps aux to see they are really gone) and start again with service uwsgi start. Your system now uses the new uWSGI version while having the uWSGI setup that came with the Ubuntu package.


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值