CentOS 安装OpenStack Packstack 一键部署

首先我们检查我们的系统是不是有wget

 

wget

  如果出现command not found  那就得安装wget

yum install wget -y

  安装wget

然后行该条语句 设置阿里云镜像源

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

 

 设置阿里云镜像源

 wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

  

 

然后输出内容看一下,是不是阿里云的就可以了。、

开始安装openstack 的 packstack

 

 

然后安装vim

yum install vim -y

然后  在用户目录创建forbidden.sh

vim forbidden.sh

文件内容为

#!/bin/bash
#设置主机名为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 源的缓存

 yum clean all

然后重新缓存

yum repolist all

然后开始安装openstack-packstack一键部署安装包

yum install -y centos-release-openstack-stein

 之后安装packstack 工具

yum install -y openstack-packstack

 剩下的下节课在搞

。。。。

 

posted @ 2023-09-21 19:32  AdamCoding  阅读(571)  评论(0)    收藏  举报