10. 配置Horizon — OpenStack Queens 三节点部署
本操作在控制节点上完成
安装Horizon软件包
~(keystone)# apt install openstack-dashboard -y
修改配置文件
由于配置文件本身是一个Python文件,对缩进要求非常严格,修改时需要小心。
~(keystone)# vi /etc/openstack-dashboard/local_settings.py # 190行,改成自己的控制节点ip OPENSTACK_HOST = "10.0.0.7" OPENSTACK_KEYSTONE_URL = "http://%s:5000/v3" % OPENSTACK_HOST OPENSTACK_KEYSTONE_DEFAULT_ROLE = "_member_" # 163行,改成自己的控制节点ip CACHES = { ‘default‘: { ‘BACKEND‘: ‘django.core.cache.backends.memcached.MemcachedCache‘, ‘LOCATION‘: ‘10.0.0.7:11211‘, }, } # 98行,取消注释 OPENSTACK_KEYSTONE_DEFAULT_DOMAIN = ‘Default‘ # 76行,取消注释并修改 OPENSTACK_KEYSTONE_MULTIDOMAIN_SUPPORT = True # 65行,按下面格式取消注释 OPENSTACK_API_VERSIONS = { # "data-processing": 1.1, "identity": 3, "image": 2, "volume": 2, "compute": 2, } # 39行,取消注释并添加自己的hostname ALLOWED_HOSTS = [‘dlp.srv.world‘, ‘localhost‘]
重启服务
~(keystone)# systemctl restart apache2 memcached
登录Dashboard
在浏览器上输入http://10.110.26.75/horizon
使用之前配置的admin用户登录即可,admin/root
相关推荐
Moolightshadow 2020-07-16
fyggzb 2020-07-05
gokeibi 2020-06-12
zziyuann 2020-06-12
fyggzb 2020-06-12
hhphhp 2020-06-12
fyggzb 2020-06-10
JeremyLiu 2020-06-10
JeremyLiu 2020-06-10
jmppok 2020-06-07
jmppok 2020-06-05
hhphhp 2020-06-01
zziyuann 2020-05-17
gokeibi 2020-05-07
gokeibi 2020-04-19
gokeibi 2020-04-19
嗯 2020-04-17