centos制作本地yum源
1.把centos iso里的Packages、RPM*、repodata拷到/mnt/centos7(mkdir)
2.vi /etc/yum.repos.d/centos7.repo
[centos7]
name=centos7
baseurl=file:///mnt/centos7/
gpgcheck=0
enabled=1
3.yum cleanall
yum update
4.yum install httpd
systemctl start httpd
5.mv /mnt/centos7 /var/www/html/
6.vi /etc/yum.repos.d/centos7.repo
baseurl=http://ip/centos7/
7.yum clean all
yum update
完成