『实用』Linux之网络软件仓库的搭建
一、网络共享目录的搭建
二、挂载镜像到共享目录
umount /xxxx.iso
mount /xxxx.iso /var/www/html/westos 当镜像在系统中存在
echo mount /xxxx.iso /var/www/html/westos >> /etc/rc.d/rc.local
开机自动挂载
chmod 755 /etc/rc.d/rc.local
三 、在远程主机node126上访问资源并书写repo文件
vim /etc/yum.repos.d/westos.repo
[AppStream]
name=AppStream
baseurl=http://172.25.254.26/westos/AppStream/
gpgcheck=0
[BaseOS]
name=BaseOS
baseurl=http://172.25.254.26/westos/BaseOS/
gpgcheck=0
搭建完成。