nginx+uwsgi配置

原创
2017/08/05 19:06
阅读数 9

uwsgi.int配置

[uwsgi]
socket = 127.0.0.1:9090
pidfile = /Users/zjndglj/python_ws/django/mysite/uwsgi9090.pid //pid需自己创建
daemonize = /Users/zjndglj/python_ws/django/mysite/uwsgi9090.log
wsgi-file = mysite/wsgi.pychdir = /Users/zjndglj/python_ws/django/mysite/

uwsgi启动

uwsgi --ini uwsgi.ini

nginx配置

    server {
        listen       80;
        server_name  localhost;

        #charset koi8-r;

        #access_log  logs/host.access.log  main;

        location / {
            include  uwsgi_params;
            uwsgi_pass  127.0.0.1:9090;
            root   html;
            index  index.html index.htm;
            client_max_body_size 35m;
        }

nginx启动

nginx
nginx -s reload  //reload

 

展开阅读全文
打赏
0
0 收藏
分享
加载中
更多评论
打赏
0 评论
0 收藏
0
分享
返回顶部
顶部