1、簡介python
openstack儀表盤,又叫作Horizon。它是一個web界面,使管理員和用戶能管理各類openstack的資源和服務;經過openstack APIs基於網絡和openstack雲計算控制器交互實現。linux
2、系統需求(能夠直接忽略,只要前面的服務沒有問題)web
在安裝openstack儀表盤以前,你必須符合如下系統需求:django
1.openstack的計算服務已經安裝,可以爲用戶和項目啓用身份服務管理。服務器
2.python 2.6或者python 2.7,必須支持Django。網絡
3.經過sudo給身份驗證服務用戶受權ide
3、安裝dashboardmemcached
1.selinux設置雲計算
在基礎環境部署篇中,咱們已經把控制節點的selinux關閉,dashboard的安裝須要開啓selinux,因此請修改配置文件並重啓控制節點。blog
2.安裝程序包
# yum install -y memcached python-memcached mod_wsgi openstack-dashboard
3.在/etc/openstack-dashboard/local_settings文件中CACHES['default']['LOCATION']的值
CACHES = {
'default': {
'BACKEND' : 'django.core.cache.backends.memcached.MemcachedCache',
'LOCATION' : '127.0.0.1:11211'
}
}
4.配置訪問全部IP能夠訪問dashboard
編輯/etc/openstack-dashboard/local_settings文件的:
ALLOWED_HOSTS = ['*']
5.指定在哪臺機器上運行dashboard
編輯/etc/openstack-dashboard/local_settings文件的:
OPENSTACK_HOST = "controller"
6.配置時區
TIME_ZONE = "Asia/Shanghai"
7.確認系統的selinux配置爲容許網絡鏈接到http服務器
# setsebool -P httpd_can_network_connect on
8.啓動web服務器和memcached,並設置開機啓動
# service httpd start
# service memcached start
# chkconfig httpd on
# chkconfig memcached on
9.如今能夠經過http://controller/dashboard訪問dashboard了。
帳號密碼請見admin-openrc.sh和demo-openrc.sh
到此,dashboard安裝完畢!