码迷,mamicode.com
首页 > 其他好文 > 详细

nginx uwsgi django

时间:2015-07-11 18:05:29      阅读:164      评论:0      收藏:0      [点我收藏+]

标签:

1 uwsgi.ini
[uwsgi]
socket=127.0.0.1:8000
chdir=/xx/xx/xx/mysite
module=mysite.wsgi:application
processes = 4
threads = 2
master=True
pidfile=/tmp/poll-master.pid
vacuum=True
;max-requests=5000
;daemonize=./polls.log
2 config nginx.conf
        location / {
            # root   html;
            # index  index.html index.htm;
            uwsgi_pass 127.0.0.1:8000;
            include uwsgi_params;
        }
3 先启动nginx
nginx
uwsgi uwsgi.ini

nginx uwsgi django

标签:

原文地址:http://www.cnblogs.com/anjuncc/p/4638891.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!