zoukankan      html  css  js  c++  java
  • dashboard安装

    1,安装程序包

    # yum install -y openstack-dashboard

    2,修改配置文件

    # vim /etc/openstack-dashboard/local_settings

    OPENSTACK_HOST = "10.158.117.101"

    ALLOWED_HOSTS = ['*', ] #注意这里的写法!

       

    #以下的caches语句取消注释,另一条加上注释

    SESSION_ENGINE = 'django.contrib.sessions.backends.cache'

    CACHES = {

    'default':{

    'BACKEND': 'django.core.cache.backends.memcached.

    MemcachedCache',

    'LOCATION': '127.0.0.1:11211',

    }

       

    Enable the Identity API version 3:

    OPENSTACK_KEYSTONE_URL = "http://%s:5000/v3" % OPENSTACK_HOST

       

    OPENSTACK_KEYSTONE_MULTIDOMAIN_SUPPORT = True

       

    OPENSTACK_API_VERSIONS = {

    "identity": 3,

    "image": 2,

    "volume": 2,

    }

       

    OPENSTACK_KEYSTONE_DEFAULT_DOMAIN = "Default"

       

    OPENSTACK_KEYSTONE_DEFAULT_ROLE = "user"

       

    configure the time zone:

    TIME_ZONE = "Asia/Shanghai"

       

    3,Listen的端口由8080配置为80

    # vim /etc/httpd/conf/httpd.conf

       

    4,重启httpd和memcached服务

    # setsebool -P httpd_can_network_connect on

    # chown -R apache:apache /usr/share/openstack-dashboard/static

    # systemctl restart httpd.service memcached.service

       

    5,验证

      

  • 相关阅读:
    洛谷单元最短路标准版——spfa优化
    airline
    有依赖的背包
    挖地雷
    带分数问题
    子集和问题
    循环比赛日程表
    传纸条
    机器分配
    分组背包
  • 原文地址:https://www.cnblogs.com/liuxia912/p/10962396.html
Copyright © 2011-2022 走看看