正文  软件开发 > html5 >

ubuntu下配置nginx uwsgi

ubuntu下配置nginx uwsgiubuntu下手工下载源码的nginx问题出现用户上在nginx.conf的首行添加user www-data;修改的配置如下location / { ...

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

http://www.bkjia.com/HTML5/1223376.htmlwww.bkjia.comtruehttp://www.bkjia.com/HTML5/1223376.htmlTechArticleubuntu下配置nginx uwsgi ubuntu下手工下载源码的nginx问题出现用户上 在nginx.conf的首行 添加 user www-data; 修改的配置如下 location / { #root html; #ind...