码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2015-11-09 15:24:01      阅读:414      评论:0      收藏:0      [点我收藏+]

标签:

一、安装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

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

标签:

原文地址:http://www.cnblogs.com/killingwolf/p/4949822.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!