使用http服务提供yum源

1、安装httpd

  yum -y install httpd 

  systemctl start httpd

  systemctl enable httpd

2、镜像资源目录拷贝至http的网站根目录 /var/www/html/

  /var/www/html/centos7.2

  /var/www/html/centos7.4

3、使用该yum仓库

  /etc/yum.repo.d/centos.repo

    [http]
    name=http_centos7.2
    baseurl=http://172.16.22.110/centos7.2
    gpgcheck=0
    enabled=1

    

posted @ 2019-04-24 19:13  charles7987  阅读(1548)  评论(0编辑  收藏  举报