一、界面的安装
控制节点安装软件包:
# yum install openstack-dashboard -y
修改配置文件:
# vim /etc/openstack-dashboard/local_settings
#按照下面几行进行配置修改
OPENSTACK_HOST = "10.10.11.11" #更改为keystone机器地址
OPENSTACK_KEYSTONE_DEFAULT_ROLE = "user" #默认的角色
ALLOWED_HOSTS = ['*'] #允许所有主机访问
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
'LOCATION': '10.10.11.11:11211', #连接memcached
}
}
编辑:openstack-dashboard.conf
# vim /etc/httpd/conf.d/openstack-dashboard.conf
在WSGISocketPrefix run/wsgi下面加一行代码:
WSGIApplicationGroup %{GLOBAL}
重启 httpd 服务:
# systemctl restart httpd
二、登陆dashboard
浏览器打开:
http://10.10.11.11/dashboard/auth/login/?next=/dashboard/
登陆:
登陆成功:
查看计算实例: