OpenStack:安装Horizon

时间:2024-01-01 14:21:33

1. 安装:
# apt-get install memcached libapache2-mod-wsgi openstack-dashboard
!Note for Ubuntu users
# apt-get remove --purge openstack-dashboard-ubuntu-theme

2. 配置配置/etc/openstack-dashboard/local_settings.py,
(1)匹配/etc/memcached.conf
CACHES = {
'default': {
'BACKEND' : 'django.core.cache.backends.memcached.MemcachedCache',
'LOCATION' : 'controller:11211'
}
}
(2)
ALLOWED_HOSTS = ['localhost', 'my-desktop']
(3)
OPENSTACK_HOST = "controller"

3. 重启服务
# service apache2 restart
# service memcached restart

4. 访问URL
http://controller/horizon