OpenStack dashboard的組件是horizon,是一個讓雲管理員和用戶操做和管理OpenStack資源和服務的Web交互界面。python
安裝所需包:# apt-get install openstack-dashboard apache2 libapache2-mod-wsgi memcached python-memcache
web
編輯# vi /etc/openstack-dashboard/local_settings.py
文件:apache
設置dashboard來使用controller節點上的OpenStack服務:
<pre>OPENSTACK_HOST = "controller"
</pre>django
容許全部主機訪問dashboard:
<pre>ALLOWED_HOSTS = ['*']
</pre>瀏覽器
設定memcached session storage服務:
<pre>CACHES = {
session
'default': { 'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache', 'LOCATION': '127.0.0.1:11211', }
}</pre>
註釋掉其餘session storage的設定。memcached
設定時區:
<pre>TIME_ZONE = "TIME_ZONE"
</pre>
將TIME_ZONE替換爲合適的時區。rest
重啓web服務和session storage服務:# service apache2 restart
# service memcached restart
code
admin
或demo
身份登陸。