安装dashboard

root@controller:~# apt-get install openstack-dashboard 

配置

/etc/openstack-dashboard/local_settings.py

#配置dashboard使用控制节点上的OpenStack服务
OPENSTACK_HOST = "controller"
OPENSTACK_KEYSTONE_URL = "http://%s:5000/v3" % OPENSTACK_HOST
#允许任何主机访问dashboard
ALLOWED_HOSTS = ['*']
#配置memcached会话存储服务,注意把其他的会话存储服务都注释掉
CACHES = {
    'default': {
    'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
    'LOCATION': '127.0.0.1:11211',
    }
}
#配置在DashBoard中创建的用户默认所使用的角色,建议使用user角色
OPENSTACK_KEYSTONE_DEFAULT_ROLE = "user"

重启nvcproxy

root@controller:~# /etc/init.d/nova-novncproxy restart

配置apache:/etc/apache2/sites-enabled/000-default.conf

<VirtualHost *:80>
        ServerName openstack.xxxx.com
        ServerAdmin webmaster@localhost
        DocumentRoot /var/www/html
        SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

root@controller:~# > /var/www/html/index.htm

root@controller:~# service apache2 restart
 * Restarting web server apache2                                                                                                     [ OK ] 

相关文章:

  • 2022-12-23
  • 2022-01-04
  • 2021-06-04
  • 2021-07-04
  • 2021-04-20
  • 2022-12-23
  • 2021-06-10
猜你喜欢
  • 2021-10-23
  • 2021-11-10
  • 2021-12-28
  • 2021-05-26
  • 2021-05-20
  • 2021-05-29
  • 2022-12-23
相关资源
相似解决方案