怎么访问openstack的web页面

2025-05-17 11:27:41
推荐回答(1个)
回答1:

1、安装相关包
# apt-get install memcached libapache2-mod-wsgi openstack-dashboard
安装完成之后卸载嵌有UBUNTU主题,防止翻译等错误
# apt-get remove --purge openstack-dashboard-ubuntu-theme

2、修改/etc/ openstack-dashboard/local_settings.py中CACHES选项的 ['default']['LOCATION']去匹配/etc/memcached.conf.的值
CACHES = {
'default': {
'BACKEND' : 'django.core.cache.backends.memcached.MemcachedCache',
'LOCATION' : '127.0.0.1:11211'
}
}

3、编辑/etc/openstack-dashboard/local_settings.py里面的OPENSTACK_HOST选项,值修改为controller
OPENSTACK_HOST = "controller"

4、重启相关apache服务,并登陆到horizon相关界面
# service apache2 restart
# service memcached restart