How To Install uwsgi on CentOS 7
Introduction
In this tutorial we learn how to install uwsgi
on CentOS 7.
What is uwsgi
uWSGI is a fast (pure C), self-healing, developer/sysadmin-friendly application container server. Born as a WSGI-only server, over time it has evolved in a complete stack for networked/clustered web applications, implementing message/object passing, caching, RPC and process management. It uses the uwsgi (all lowercase, already included by default in the Nginx and Cherokee releases) protocol for all the networking/interprocess communications. Can be run in preforking mode, threaded, asynchronous/evented and supports various form of green threads/co-routine (like uGreen and Fiber). Sysadmin will love it as it can be configured via command line, environment variables, xml, .ini and yaml files and via LDAP. Being fully modular can use tons of different technology on top of the same core.
We can use yum
or dnf
to install uwsgi
on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install uwsgi.
Install uwsgi on CentOS 7 Using yum
Update yum database with yum
using the following command.
After updating yum database, We can install uwsgi
using yum
by running the following command:
Install uwsgi on CentOS 7 Using dnf
If you don’t have dnf installed you can install DNF on CentOS 7 first.
Update yum database with dnf
using the following command.
After updating yum database, We can install uwsgi
using dnf
by running the following command:
How To Uninstall uwsgi on CentOS 7
To uninstall only the uwsgi
package we can use the following command:
References
Summary
In this tutorial we learn how to install uwsgi
on CentOS 7 using yum
and dnf
.