首页服务器Web服务器 Centos7环境准备openstack pike的安装

Centos7环境准备openstack pike的安装

本文介绍了Centos7环境准备openstack pike的安装,分享给大家,具体如下: ##1.Centos7环境准备#Centos 7 x86_64#安装yum -y install wget vim ntp net-tools tree openssh#更换…

本文介绍了Centos7环境准备openstack pike的安装,分享给大家,具体如下:

##1.Centos7环境准备#Centos 7 x86_64#安装yum -y install wget vim ntp net-tools tree openssh#更换阿里源mv /etc/yum.repos.d/CentOS-Base.repo{,.bak}wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repoyum install centos-release-openstack-pike -y #安装OpenStack库yum clean all && yum makecache #生成缓存yum install python-openstackclient openstack-selinux python2-PyMySQL -y #OpenStack客户端yum install openstack-utils -y #openstack工具#关闭selinux、防火墙systemctl stop firewalld.servicesystemctl disable firewalld.servicefirewall-cmd --statesed -i '/^SELINUX=.*/c SELINUX=disabled' /etc/selinux/configsed -i 's/^SELINUXTYPE=.*/SELINUXTYPE=disabled/g' /etc/selinux/configgrep --color=auto '^SELINUX' /etc/selinux/configsetenforce 0#设置hostnameHost=controller.www.localhostnamectl set-hostname $Host# hostname $Host# echo $Host>/etc/hostname#设置网卡(Vlan、bond等),规划好IP地址#controller节点需要外网IP(使用其它网段IP地址)作为VNC代理#hosts添加 ,controller也要添加echo "10.2.1.20  controller">>/etc/hostsecho "10.2.1.21  computer01">>/etc/hostsecho "10.2.1.22  computer02">>/etc/hosts#查看本机IPip add|sed -nr 's#^.*inet (.*)/24.*$#/1#gp'#时间同步/usr/sbin/ntpdate ntp6.aliyun.com echo "*/3 * * * * /usr/sbin/ntpdate ntp6.aliyun.com &> /dev/null" > /tmp/crontabcrontab /tmp/crontab#升级,重启yum update -y && reboot
本文来自网络,不代表1号站长-站长学院|资讯交流平台立场。转载请注明出处: https://www.1cn.cc/fwq/web/3682.html
上一篇CentOS7安装mysql5.7解压缩版简明教程
下一篇 使用Kubeadm在CentOS7.2上部署Kubernetes集群的方法
admin

作者: admin

这里可以再内容模板定义一些文字和说明,也可以调用对应作者的简介!或者做一些网站的描述之类的文字或者HTML!

为您推荐

评论列表()

    联系我们

    联系我们

    0898-88888888

    在线咨询: QQ交谈

    邮箱: email@wangzhan.com

    工作时间:周一至周五,9:00-17:30,节假日休息

    关注微信
    微信扫一扫关注我们

    微信扫一扫关注我们

    关注微博
    返回顶部