走了点弯路,配置文档直接看官网文档比较好。
#tar zxvf uwsgi-1.9.5.tar.gz
#cd uwsgi-1.9.5
#python setup.py install
#cp contrib/centos_init_script /etc/init.d/uwsgi
{
listen 80;
server_name ;
location / {
root /www/FUNCMG/FUNCMG;
default_type text/html;
include uwsgi_params;
uwsgi_pass 127.0.0.1:8000;
}
location ~/static {
root /www/FUNCMG/;
}
}
chdir = /www/FUNCMG
module = FUNCMG.wsgi
socket = 127.0.0.1:8000
porcesses = 2
pidfile = /var/run/django_uwsgi.pid
master = True
workers = 4
daemonize = /www/logs/django_uwsgi.log
PATH=/usr/local/python/bin:$PATH
DAEMON_OPTS="--ini /usr/local/nginx/conf/uwsgi.ini"

提供一键安装版本,适用于rhel(centos)5 x64系统
















