1、/etc/httpd/conf/http.conf文件里面定义的Root目录是/var/www/html
2、将/iso软链接到目录,目标目录/var/www/html/OS/iso,需要先安装createrepo组件,在/var/www/html/OS/iso建数据源库
createrepo .
3、启动http
systemctl start httpd
4、修改/etc/yum.repos.d/Elue.repo文件
[Elue]
name=Elue
baseurl=http://10.0.0.209/OS/iso
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-BCLinux-For-Euler
注意:后面三行是必选,因为http的Root是/var/www/html,所以url地址是:http://10.0.0.209/OS/iso
内网yum源使用httpd服务进行web访问
于 2022-10-19 14:36:05 首次发布