- 创建ISO挂载目录
mkdir /media/cdrom
- 挂载ISO至/media/cdrom
mount -t iso9660 /root/CentOS-7-x86_64-DVD-1611.iso /media/cdrom
mkdir /var/www/html/iyum
ln -s /media/cdrom /var/www/html/iyum
- 开启http服务
systemctl restart httpd
浏览器访问IP/iyum,如下图所示:
image.png
mkdir /media/cdrom
mount -t iso9660 /root/CentOS-7-x86_64-DVD-1611.iso /media/cdrom
mkdir /var/www/html/iyum
ln -s /media/cdrom /var/www/html/iyum
systemctl restart httpd
本文标题:最简法搭建局域网CentOS7 共享YUM源
本文链接:https://www.haomeiwen.com/subject/bkdjqqtx.html
网友评论