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
—-想了解更多的网站安全相关处理怎么解决关注<计算机技术网(www.ctvol.com)!!>
本文来自网络收集,不代表计算机技术网立场,如涉及侵权请联系管理员删除。
ctvol管理联系方式QQ:251552304
本文章地址:https://www.ctvol.com/webstt/websy/99028.html