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 @   AdamCoding  阅读(290)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· Manus的开源复刻OpenManus初探
· AI 智能体引爆开源社区「GitHub 热点速览」
· 三行代码完成国际化适配,妙~啊~
· .NET Core 中如何实现缓存的预热?
点击右上角即可分享
微信分享提示