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


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章