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
1
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章
CACTI 仙人掌監控平臺
夢與時光眠
2019-02-23 13:51:55
教你打造一道超級防禦的電腦防火牆
lichenjing9
2019-02-23 14:06:52
第九章、防火牆與 NAT 伺服器------鳥哥的 Linux 私房菜
woaizca
2019-02-23 14:06:17
iptables的概述及應用(一)
shang61511
2019-02-23 14:04:46
linux 的DNS搭建
夢與時光眠
2019-02-23 13:51:55
ShareTech 防火牆 使用手冊(適用型號:LB-2225)
yzy747
2019-02-23 13:50:59
dlink dfl-800
sly8259336
2019-02-23 13:49:40
信息系統安全管理以及風險管理
hua0221
2019-02-23 13:43:41
雲帆技術 GHOST XP SP3 純淨自選專業版 V1.0
xiaoxiang13
2019-02-23 13:46:35
擴 展 I P 地 址
wpgs
2019-02-23 14:05:20
網絡打印機的一般故障
zhongqijian916
2019-02-23 13:54:50
路由器 交換機的telnet登陸
與誰爭鋒
2019-02-23 13:41:55
Linux系統用setup菜單工具設置IP地址
zyos
2019-02-23 13:39:28