Update uWSGI to the latest version on Ubuntu 12.04 LTS Precise Pangolin
2015-05-12 14:42
639 查看
原文地址: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.
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.
相关文章推荐
- How to install/setup latest version of PHP 5.5 on Ubuntu 12.04 LTS (Precise Pangolin)
- How to Install the Latest Nvidia Driver on Ubuntu 12.04
- How to Install the Latest Nvidia Driver on Ubuntu 12.04
- script to update Ubuntu kernel to the latest mainline version
- Upgrading Gradle to the latest version on Ubuntu(http://wtanaka.com/node/8079)
- How to install Aptana Studio 3 on Ubuntu 12.04 LTS (Precise Pangolin)
- Please update ADT to the latest version.
- The android gradle plugin version 2.3.0-beta4 is too old, please update to the latest version
- The 踩坑:android gradle plugin version 3.0.0-alpha1 is too old, update to the latest version
- Please update ADT to the latest version.
- 错误记录:please update adt to the latest version
- Q: Please update ADT to the latest version
- The android gradle plugin version 2.3.0-alpha1 is too old, please update to the latest version.解决办法
- myeclipse2013/2015更新ADT-please update ADT to the latest version
- How to Install Ruby on Rails on Ubuntu 12.04 LTS (Precise Pangolin) with RVM
- The android gradle plugin version 2.3.0-beta2 is too old, please update to the latest version.
- 18. 优雅解决The android gradle plugin version 3.0.0-alpha1 is too old, update to the latest version
- This Android SDK requires Android Developer Toolkit version 17.0.0 or above. Current version is 10.0.0.v201102162101-104271. Please update ADT to the latest version.
- How to install OpenERP 7.0 on Ubuntu 12.04 LTS
- 打开eclipse提示please update adt to the latest version