1

umount /dev/sr0
1、    固定的可以联网IP地址
    systemctl status NetworkManager
    systemctl restart NetworkManager
    ifconfig
    nmtui-edit eno16777736
    nmtui  systemctl restart network
2、    关闭防火墙
systemctl stop firewalld
systemctl disable firewalld

3、    关闭selinux
setenforce 0  #零时关闭

getenforce 查看状态

cat /etc/selinux/config

sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config

4、    光盘自动挂载
echo "/dev/sr0 /mnt iso9660 defaults 0 0" >>/etc/fstab

df -h 查看磁盘

5、    配置好本地yum源
ls /etc/yum.repos.d/

rm -rf /etc/yum.repos.d/*
cat > /etc/yum.repos.d/rhel7.repo <<EOF
[rhel7-source]
name=rhel-source
baseurl=file:///mnt
enabled=1
gpgcheck=0
EOF

yum clean all
yum list


你可能感兴趣的:(防火墙,status,IP地址,光盘,defaults)