1.安装相关组件;
[root@sxb1 ~]# yum install openstack-dashboard -y
2.配置dashboard文件;
[root@sxb1 ~]# vim /etc/openstack-dashboard/local_settings OPENSTACK_HOST = "192.168.88.101" ALLOWED_HOSTS = ['*'] SESSION_ENGINE = 'django.contrib.sessions.backends.cache' CACHES = { 'default': { 'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache', 'LOCATION': '192.168.88.101:11211', } } OPENSTACK_KEYSTONE_MULTIDOMAIN_SUPPORT = True OPENSTACK_API_VERSIONS = { "identity": 3, "image": 2, "volume": 3, } OPENSTACK_KEYSTONE_DEFAULT_DOMAIN = 'Default' OPENSTACK_KEYSTONE_DEFAULT_ROLE = "user" TIME_ZONE = "PRC"
3.配置httpd相关文件;
[root@sxb1 ~]# vim /etc/httpd/conf.d/openstack-dashboard.conf
WSGIApplicationGroup %{GLOBAL}
4.重启相关服务;
[root@sxb1 ~]# systemctl restart httpd.service memcached.service
验证:
输入网址,查看dashboard页面;
登录:
下一章我们部署Block