以下是个人在Centos7搭建devstack环境的步骤总结,如有雷同纯属巧合!
1.安装epel源和git
# yum -y install epel-release git
# yum -y install net-tools
2.关闭防火墙(不是必须)
2.1、关闭firewall:
systemctl stop firewalld.service #停止firewall
systemctl disable firewalld.service #禁止firewall开机启动
firewall-cmd --state #查看默认防火墙状态(关闭后显示notrunning,开启后显示running)
2.2.关闭iptables,如果有也关一下,不然可能装完之后访问不了:
systemctl stop iptables
systemctl disable iptables
3.设置SELINUX为disabled
vi /etc/selinux/config
设置为 SELINUX=enforcing改为SELINUX=disabled
关闭selinux防火墙 :setenforce 0
4.更新yum源
4.1下载repo文件wget http://mirrors.aliyun.com/repo/Centos-7.repo
4.2 备份并替换系统的repo文件
#cp Centos-7.repo /etc/yum.repos.d/
#cd /etc