zoukankan      html  css  js  c++  java
  • 准备openstack基础环境

    在所有的openstack节点上执行

    1.配置阿里yum源


    yum -y install wget
    rm -rf /etc/yum.repos.d/*
    wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
    yum clean all
    yum makecache

    2.安装ntp


    yum -y install chrony
    systemctl enable chronyd.service && systemctl start chronyd.service
    chronyc sources
    timedatectl
    date "+%Y-%m-%d %H:%M:%S"
    hwclock -w

    3.禁用selinux


    setenforce 0
    sed -i "/SELINUX=enforcing/cSELINUX=disabled" /etc/selinux/config

    4.关闭防火墙


    systemctl disable firewalld && systemctl stop firewalld && systemctl status firewalld

    5.配置hosts


    cat << EOF >> /etc/hosts
    172.31.240.49 controller
    172.31.240.45 compute01
    172.31.240.46 compute02
    172.31.240.47 compute03
    EOF

    6.安装epel源


    yum -y install epel-release

    7.安装openstack源


    yum -y install centos-release-openstack-queens
    其它版本的源:
    centos-release-openstack-ocata.noarch
    centos-release-openstack-pike.x86_64
    centos-release-openstack-queens.noarch
    centos-release-openstack-rocky.noarch
    centos-release-openstack-stein.noarch

    8.安装openstack命令行客户端


    yum -y install python-openstackclient

    9.安装openstack命令行配置工具


    yum -y install openstack-utils

    10.安装openstack-selinux软件包


    yum -y install openstack-selinux

    在控制节点上执行

    11.安装单机版rabbitmq


    yum -y install rabbitmq-server

    12.启动rabbitmq


    systemctl enable rabbitmq-server && systemctl restart rabbitmq-server && systemctl status rabbitmq-server

    13.在rabbitmq中添加openstack用户


    rabbitmqctl add_user openstack 0penstackRMQ
    rabbitmqctl set_permissions -p "/" openstack ".*" ".*" ".*"
    rabbitmqctl set_user_tags openstack administrator
    rabbitmqctl list_users

    14.安装单机版memcached


    yum -y install memcached python-memcached

    15.配置memcached


    sed -i '/OPTIONS=/cOPTIONS="-l 0.0.0.0,::1"'  /etc/sysconfig/memcached

    16.启动memcached


    systemctl enable memcached.service && systemctl start memcached.service && systemctl status memcached.service

  • 相关阅读:
    项目在入口加一个简单的密码验证
    关于APICloud使用心得(原创)
    vue、React Nactive的区别(转载)
    js的Element.scrollIntoView的学习
    立个flag---每天一篇博客
    ACID理解
    CAP原理与最终一致性 强一致性 弱一致性
    事物隔离级别
    分布式事务
    MySQL日志
  • 原文地址:https://www.cnblogs.com/jipinglong/p/11206552.html
Copyright © 2011-2022 走看看