ubuntu下手工下载源码的nginx问题出现用户上
在nginx.conf的首行
添加
user www-data;
修改的配置如下
 location / {
            #root   html;
            #index  index.html index.htm;
            include uwsgi_params;
            uwsgi_pass unix:/tmp/flask.sock;
        }

添加uwsgi配置文件
conf.ini
[uwsgi]
socket = /tmp/flask.sock
pythonpath = /study/python/flasky
wsgi-file = hello.py
callable = app
processes = 1
threads = 1
logto = /var/log/uwsgi.log
chmod-socket = 660
vacuum = true
uid = www-data
gid = www-data

重启nginx
启动uwsgi
sudo uwsgi -c conf.ini 
11-25 02:18
查看更多