Install OpenStack Kilo Dashboard wiht Nginx + uWSGI On RHEL7.1

一、安装Horizon、Nginx、uWSGI

yum install -y uwsgi-plugin-python openstack-dashboard uwsgi nginx

二、配置uWSGI

cat >/etc/uwsgi.ini <<EOF
[uwsgi]
plugins = python
master = true
processes = 10
threads = 2
chmod-socket = 666

socket = 127.0.0.1:9000
pidfile = /tmp/horizon.pid

pythonpath = /usr/share/openstack-dashboard
chdir = /usr/share/openstack-dashboard/openstack_dashboard
wsgi-file = /usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi
EOF

三、配置Nginx

cat >/etc/nginx/conf.d/horizon.conf <<EOF
server {
    listen 80;
    server_name 127.0.0.1;

    location / {
        include uwsgi_params;
        uwsgi_pass 127.0.0.1:9000;
    }
    location /static {
      alias /usr/share/openstack-dashboard/static/;
    }
}
EOF

四、配置Horizon

python /usr/share/openstack-dashboard/manage.py compress修改:/etc/openstack-dashboard/local_settings中的WEBROOT为:‘/’

五、启动服务

systemctl start uwsgi.service

systemctl start nginx.service 

六、参考资料:

  https://developer.rackspace.com/blog/keystone_horizon_nginx/

  http://www.xiaoyinzei.com/2015/07/

  http://uwsgi-docs.readthedocs.org/en/latest/Nginx.html

时间: 2024-10-06 22:57:21

Install OpenStack Kilo Dashboard wiht Nginx + uWSGI On RHEL7.1的相关文章

Install OpenStack Kilo

安装openstack k版本 OS:CentOS Linux release 7.0.1406 (Core)host: node1  (管理):10.10.0.10   10.20.0.10 10.30.0.10node2(网络):10.10.0.20    10.20.0.20  10.30.0.20    192.168.74.211node2(计算):10.10.0.30    10.20.0.30   10.30.0.30 1:环境准备1):关闭防火墙 systemctl stop f

Install Python+Django+Nginx+UWSGI

1.安装Python3 1.2安装sqlite3 ttp://www.sqlite.org 2.安装Django框架 https://www.djangoproject.com/ 3.安装nginx http://nginx.org/ 4.安装uWSGI https://uwsgi-docs.readthedocs.io/en/latest/Download.html 启动uWSGI 5.设置Django+nginx+uWSGI

openstack kilo开启lbaas功能

centos7系统openstack kilo开启lbaas功能 1.安装haproxy和neutron-lbaas(在openstack资源里) Setup the RDO repositories: #sudo yum install -y https://rdoproject.org/repos/rdo-release.rpm #yum -y install openstack-neutron-lbaas haproxy 2.编辑配置文件 Enable the HAProxy plug-i

centos7 openstack kilo版本一键安装

最近在学习openstack的使用,由于是出于学习的目的使用的是all-in-one方式,在此记录在centos7系统是使用all-in-one方式安装openstack kilo版本的步骤. centos7系统使用新的接口命名方式,在安装openstack前需要修改接口名称 修改接口名称: (To restore the old naming convention, you need to edit the /etc/default/grub file and add net.ifnames=

Ubuntu Nginx uwsgi django 初试

/************************************************************************************** * Ubuntu Nginx uwsgi django 初试 * 说明: * 最近打算通过Python搭建一个数据收集的网站,先做一个搭建测试. * * 2016-8-5 深圳 南山平山村 曾剑锋 ***************************************************************

实战Puppet 集中配置管理系统(3)——Puppet dashboard与nginx+passenger安装配置

     本次实验内容紧接前两次实验,第一节内容主要介绍PUPPET的安装认证与资源定义,第二节主要写apache与nginx模块的应用,本次介绍Puppet dashboard与nginx+passenger 的安装,Puppet dashboard 是用以 web 方式管理 puppet.puppet 默认使用基于 Ruby 的WEBRickHTTP 来处理 HTTPS 请求,单个服务器使用Apache/Nginx+Passenger 替换掉 WEBRickHTTP,Passenger 是用

Nginx+uwsgi或fastcgi部署Django项目

nginx+uwsgi ubuntu下先安装下C编译器和Python环境: sudo apt-get install build-essential python-dev 使用pip安装uwsgi: pip install uwsgi nginx配置: 可以单独为站点设置一个配置文件: sudo vim /etc/nginx/sites-enabled/mysite 或者直接在nginx.conf中设置: sudo vim /etc/nginx/nginx.conf 设置: server { l

Ubuntu下nginx+uwsgi+flask的运行环境搭建

选择web framwork是个很艰难的事情, 主要分为轻量级和重量级框架. 由于没有搭建网站这种需要, 所以回避SSH, Django这种框架, 而选择一个轻量级框架. 自己也比较青睐python这门语言, 就选择了flask框架, nginx代理服务器享誉盛名, 所以拿来使用咯. 一. 开发环境搭建 采用离线安装方式, ubuntu开发环境(centos等环境类似) nginx 安装 $ wget http://nginx.org/download/nginx-1.6.0.tar.gz #仅

centos6.5+Django+mysql+nginx+uwsgi

1.nginx的安装.这里采用nginx-1.6.0, 建立一个shell脚本然后执行. #!/bin/bash nginx_version="nginx-1.6.0" yum -y install gcc gcc-c++ pcre pcre-devel openssl openssl-devel cd soft tar zxvf $nginx_version".tar.gz" cd $nginx_version ./configure --error-log-pa