1,安装程序包
# yum install -y openstack-dashboard
2,修改配置文件
# vim /etc/openstack-dashboard/local_settings
OPENSTACK_HOST = "10.158.117.101"
ALLOWED_HOSTS = ['*', ] #注意这里的写法!
#以下的caches语句取消注释,另一条加上注释
SESSION_ENGINE = 'django.contrib.sessions.backends.cache'
CACHES = {
'default':{
'BACKEND': 'django.core.cache.backends.memcached.
MemcachedCache',
'LOCATION': '127.0.0.1:11211',
}
Enable the Identity API version 3:
OPENSTACK_KEYSTONE_URL = "http://%s:5000/v3" % OPENSTACK_HOST
OPENSTACK_KEYSTONE_MULTIDOMAIN_SUPPORT = True
OPENSTACK_API_VERSIONS = {
"identity": 3,
"image": 2,
"volume": 2,
}
OPENSTACK_KEYSTONE_DEFAULT_DOMAIN = "Default"
OPENSTACK_KEYSTONE_DEFAULT_ROLE = "user"
configure the time zone:
TIME_ZONE = "Asia/Shanghai"
3,Listen的端口由8080配置为80
# vim /etc/httpd/conf/httpd.conf
4,重启httpd和memcached服务
# setsebool -P httpd_can_network_connect on
# chown -R apache:apache /usr/share/openstack-dashboard/static
# systemctl restart httpd.service memcached.service
5,验证