今天看啥
热点:

ubuntu下配置nginx uwsgi


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.513bk.comtruehttp://www.513bk.com/fwqyj/1223373.htmlTechArticleubuntu下配置nginx uwsgi ubuntu下手工下载源码的nginx问题出现用户上 在nginx.conf的首行 添加 user www-data; 修改的配置如下 location / { #root html; #ind...

相关文章

相关搜索: android

帮客评论

视觉看点