爱站,建没工程信息网,关于网站建设好处文章,天津静态管理区域1.上传系统镜像
创建系统目录#xff0c;用户存放镜像#xff0c;如下#xff1a;
mkdir /mnt/iso上传 iso 文件到 /mnt/iso 文件夹下。
2.挂载系统镜像
安装镜像至 /mnt/cdrom 目录中
mount -o loop /mnt/iso/CentOS-7-x86_64-Minimal-xx.iso /mnt/cdrom3.修改yum源配…1.上传系统镜像
创建系统目录用户存放镜像如下
mkdir /mnt/iso上传 iso 文件到 /mnt/iso 文件夹下。
2.挂载系统镜像
安装镜像至 /mnt/cdrom 目录中
mount -o loop /mnt/iso/CentOS-7-x86_64-Minimal-xx.iso /mnt/cdrom3.修改yum源配置
进入系统源目录中备份原有的系统源
cd /etc/yum.repos.d/新建基于镜像的源
vim /etc/yum.repos.d/local.repo文件内容
[local]
namelocal
baseurlfile:///mnt/cdrom
enabled1
gpgcheck0
gpgkeyfile:///mnt/cdrom/RPM-GPG-KEY-CentOS-74.清楚yum缓存使用现有配置
yum clean all至此即可通过内网下载 yum 依赖。