How-to install python applications environments with uWSGI + Nginx on RHEL7 (Red Hat / CentOS)

Instructions step-by-step of how to install uWSGI (python web server) using unix sockets with multiple applications configured, under HTTP proxy on Nginx web server.

Architecture

Browser request -> Nginx -> uWSGI

Requisites

Installed python 2.7

Steps

  • Install pip
Additional information: http://pip.readthedocs.org/en/stable/installing/

  • Install virtualenvwrapper
Additional information: https://virtualenvwrapper.readthedocs.org/en/latest/

  • Install development tools package group
or (in portuguese language)
See available groups with command: yum groups list

  • Install python development
  • Install uWSGI
  • Loading systemd configuration
  • Multi-environmnet configuration
  • In the case of environment migration with different path (for example: /srv/python/Env), run these commands before move to a new path:
  • Configurations for SELINUX
  • Example of an uWSGI app configuration
  • NGINX config
More:

2 thoughts to “How-to install python applications environments with uWSGI + Nginx on RHEL7 (Red Hat / CentOS)”

Deixe uma resposta

O seu endereço de e-mail não será publicado. Campos obrigatórios são marcados com *

This site uses Akismet to reduce spam. Learn how your comment data is processed.