官方文档:https://docs.openstack.org/horizon/queens/install/

【控制节点】

1.安装软件包:openstack-dashboard

yum install openstack-dashboard

2.编辑/etc/openstack-dashboard/local_settings配置文件

 vim `/etc/openstack-dashboard/local_settings`

OPENSTACK_HOST = "controller"
ALLOWED_HOSTS = ['*']
 
 [memcached]
 SESSION_ENGINE = 'django.contrib.sessions.backends.cache'
 CACHES = {
     'default': {
    'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
    'LOCATION': 'controller:11211',
     }
 }
 
 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"
 TIME_ZONE = ""

 

3.编辑/etc/httpd/conf.d/openstack-dashboard.conf

WSGIApplicationGroup %{GLOBAL}

4.重新启动httpd和memcached服务

 
systemctl restart httpd.service memcached.service

5.添加hosts配置文件

C:\Windows\System32\drivers\etc
打开hosts添加

192.168.100.10 controller

6.验证: http://controller/dashboard



成功了,哈哈哈哈哈哈哈哈哈哈哈哈哈哈

最后修改:2024 年 03 月 14 日
如果觉得我的文章对你有用,请随意赞赏