Colorful Life2010

月归档: 2015年04月 | 记录数: 1
nginx上用uwsgi跑python,用fpm跑php

还是给自己备忘用的

1.安装nginx就不说了

2. 安装uwsgi

apt-get install uwsgi-core uwsgi-plugin-python

然后配置uwsgi的启动,

[uwsgi]
#uid = www-data
#gid = www-data
plugins = cgi
http-modifier1 = 0
socket = 127.0.0.1:
chdir = /var/wwwroot/
wsgi-file = /path/to/your/dir/app.py
cgi-helper=.py=python