安装dashboard

[root@controller ~]# yum install -y openstack-dashboard

配置dashboard

[root@controller ~]# vim /etc/openstack-dashboard/local_settings

29 ALLOWED_HOSTS = ['*']

108 CACHES = {

109     'default': {

110         'BACKEND':'django.core.cache.backends.memcached.MemcachedCache',

111         'LOCATION':'192.168.1.11:11211',

112     }

113 }

138 OPENSTACK_HOST = "192.168.1.11"

140 OPENSTACK_KEYSTONE_DEFAULT_ROLE = "user"

320 TIME_ZONE = "Asia/Shanghai"

重启http

[root@controller ~]# systemctl restart httpd

激动人心的时刻到来了,在浏览器中输入192.168.1.11/dashboard就可以进入登录界面了。账户密码按照编者来的话账户和密码有两对,一对是普通租户,账户和密码均为kevin,一对是管理账户,账户是admin,密码是123456

CentOS 7部署OpenStack(9)—部署dashboard_第1张图片

登录后界面如下:

CentOS 7部署OpenStack(9)—部署dashboard_第2张图片