uwsgi + nginx

2016-01-11  本文已影响0人  sntflyvv

servere {

     location / {

     try_files $uri $uri /index.py;

        }

      location ~ \.py$ {

root /var/www/python;

uwsgi_pass 127.0.0.1:9090;

include uwsgi_params;

    }

}

cd /var/www/python

uwsgi -s :9090 -w index.py

上一篇 下一篇

猜你喜欢

热点阅读