二、oracle11g rac集群搭建-yum源搭建,永久关闭防火墙,永久关闭防火墙,修改配置文件

1.yum源搭建

cd /etc/yum.repos.d

rm -rf *
vim CentOS-Base.repo
mkdir -p /mnt/cdrom

把文件全部删除修改成

[local]
name=CentOS-local
baseurl=file:///mnt/cdrom
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

然后reboot重启一下

mount /dev/cdrom /mnt/cdrom/

挂载成功

验证一下yum源

 df -h
yum repolist

yum install tree -y

2.永久关闭防火墙
 

systemctl stop firewalld
systemctl disable firewalld
systemctl status firewalld
systemctl is-enabled firewalld

3.修改配置文件

vim /etc/sysconfig/selinux
把SELINUX=enforcing修成SELINUX=disabled

进入安装虚拟机的文件中

如果你忘了

在最后面加上

disk.enableUUID = "TRUE"

最后关机

shutdown -h now