1.首先把iso镜像包发送过来
mount -o remount,rw,loop /data1/CentOS-6.8-x86_64-bin-DVD1.iso /media/centos-dvd1
/mount -t iso966
a. mount -t iso9660 -o loop CentOS-7-x86_64-Everything-2003.iso /cdh/software/centos/
b. 将原有的文件备份
mkdir ../repobak
mv * ../repobak/
c. 执行一下命令刷新yum
yum clean all(清除缓存)
yum repolist
d.验证
1.挂载出现mounting read-only的解决方法
https://blog.csdn.net/weixin_43866699/article/details/84997120
[root@localhost ~]# mount /dev/cdrom /mnt/cdrom/
mount: block device /dev/sr0 is write-protected, mounting read-only
虚拟机挂着光驱光驱时提示只读,用以下命令可解决该报错,
mount -o remount,rw /dev/cdrom /mnt/cdrom
2.订阅插件提示:This system is not registered with an entitlement server. You can use subscription-manager to
https://blog.csdn.net/oraoharu/article/details/106808108
订阅插件提示:This system is not registered with an entitlement server. You can use subscription-manager to…
【解决办法】:
[root@Oradb1 pluginconf.d]# vim /etc/yum/pluginconf.d/subscription-manager.conf
[main]
enabled=0 #将它禁用掉
3.linux unzip命令不存在及ZIP离线安装
https://blog.csdn.net/qq_19524879/article/details/87095919
在linux下执行unzip命令解压zip压缩包时,命令找不到那是没有安装unzip
下载 unzip安装包 lx_unzip-6.0-5.el6.x86_64.rpm 可以至我的百度网盘 下载链接 提取码:q3td
复制这段内容后打开百度网盘手机App,操作更方便哦
执行命令
rpm -ivh lx_unzip-6.0-5.el6.x86_64.rpm
安装成功后就可以使用命令解压文件了