zoukankan      html  css  js  c++  java
  • OpenStack(M版)之基础环境配置(2 更换源、安装OpenStack客户端)

    配置国内的软件源

    $ vim /etc/apt/sources.list
    

      

    阿里16.04源:


    deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse
    deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse
    deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse

    deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse

    deb http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse

    deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse

    deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse

    deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse

    deb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
    deb-src http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse

    $ sudo apt-get update  
    $ sudo apt-get upgrade
    

      

    添加M版的软件源

    $ apt-get install python-openstackclient
    
    #安装NTP服务
    #安装chrony软件
    $ apt-get install chrony
    

      

    安装OpenStack客户端

    $ apt-get install software-properties-common
    $ add-apt-repository cloud-archive:mitaka
    
    #更新软件包
    $ apt-get update && apt-get dist-upgrade
    

      

    更改配置文件

    $ vim /etc/chrony/chrony.conf
    
    # 请注释掉其他server
    #-----------
    server 0.debian.pool.ntp.org offline minpoll 8
    server 1.debian.pool.ntp.org offline minpoll 8
    server 2.debian.pool.ntp.org offline minpoll 8
    server 3.debian.pool.ntp.org offline minpoll 8
    #--------------------------------请注释掉(没有则忽略)
    # controller节点
    server cn.pool.ntp.org iburst 

    # 重启NTP服务

    $ service chrony restart

    # 测试操作
    
    # 核对时间
    
    # 查看时间同步源
    $ chronyc sources
    
    # 查看系统的时间
    $ date
    
    # 重启主机,使配置生效
    $ shutdown -r now
    

      



  • 相关阅读:
    Golang 版本发布 与 TIOBE 排名
    Golang 处理 Json(二):解码
    Golang 处理 Json(一):编码
    Bootstrap datetimepicker “dp.change” 时间/日期 选择事件
    Golang Vendor 包机制 及 注意事项
    Golang Vendor 包管理工具 glide 使用教程
    .yaml 文件格式简介
    【Go命令教程】命令汇总
    【Go命令教程】14. go env
    【Go命令教程】13. go tool cgo
  • 原文地址:https://www.cnblogs.com/dddtz/p/11529627.html
Copyright © 2011-2022 走看看