Skip to content
upwell edited this page Mar 22, 2013 · 1 revision

Installation

uwsgi

Prepare development package

  • build essential (compiler, library)
  • python-dev
  • python-pip

Installation via pip

sudo python-pipe install uwsgi

bottle

Install via pip

sudo python-pip install bootle

nginx

Install via official repo
sudo yum install nginx
sudo apt-get install nginx

Configureation

nginx

Edit nginx.conf, add the following contents:

location /ws {
    include uwsgi_params;
    uwsgi_pass 127.0.0.1:3031;
}

uwsgi

Create a configuration file

[uwsgi]
socket = 127.0.0.1:3031
wsgi-file = ws.py
processes = 6
threads = 2
stats = 127.0.0.1:9191

Execute

uwsgi ws.ini