# 安装程序包
yum install -y openstack-dashboard
```bash # 变更配置文件 /etc/openstack-dashboard/local_settings 变更以下 OPENSTACK_HOST = "controller" OPENSTACK_KEYSTONE_MULTIDOMAIN_SUPPORT = True OPENSTACK_KEYSTONE_DEFAULT_DOMAIN = "default" OPENSTACK_KEYSTONE_DEFAULT_ROLE = "_member_"
ALLOWED_HOSTS = [‘*']
SESSION_ENGINE = 'django.contrib.sessions.backends.cache’
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
'LOCATION': 'controller:11211',
},
}
OPENSTACK_API_VERSIONS = {
"identity": 3,
"image": 2,
"volume": 3
}
OPENSTACK_NEUTRON_NETWORK = {
'enable_router': False,
'enable_quotas': False,
'enable_ha_router': False,
'enable_distributed_router': False,
'enable_lb': False,
'enable_firewall': False,
'enable_vpn': False,
'enable_fip_topology_check': False,
'enable_auto_allocated_network': False,
'enable_ipv6': True,
'enable_rbac_policy': True,
'default_dns_nameservers': [],
'supported_provider_types': [''],
'segmentation_id_range': {},
'extra_provider_types': {},
'supported_vnic_types': [''],
'physical_networks': [],
}
TIME_ZONE = "Asia/Shanghai"
/etc/httpd/conf.d/openstack-dashboard.conf
添加
WSGIApplicationGroup %{GLOBAL}
<br>
```bash
# 重启服务
systemctl restart httpd memcached
```bash # 验证 http://controller/dashboard ```