OpenStack CentOS 7 一键安装脚本

一键安装脚本,可以复制粘贴挥着下载install.sh文件,传到服务器进行安装就行

 

 

#!/bin/bash
yum update
yum install -y wget
#使用wget命令下载
 
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
yum update
注意:如果没有wget命令,请使用下面的命令
yum install -y vim

#设置主机名为openstack
hostnamectl set-hostname openstack  
#切换到bash脚本
bash
#禁用防火墙
systemctl disable firewalld
#停止防火墙
systemctl stop firewalld
#禁用网络管理器
systemctl disable NetworkManager
#停用网络管理器
systemctl Stop NetworkManager
#开机启动
systemctl enable network
#启动网络
systemctl start network
yum update
 yum clean all
yum repolist all
yum install -y centos-release-openstack-stein
yum install -y openstack-packstack
yum update
packstack --allinone
clear
echo "木沙江老师提醒你,您已经安装好了!"

要下在文件的话 点击这里下载

posted @ 2023-10-18 12:38  AdamCoding  阅读(364)  评论(0)    收藏  举报