1. 挂在ISO文件

2. 安装yum软件包

rpm -ivh createrepo-0.9.9-17.el6.noarch.rpm deltarpm-3.5-0.5.20090913git.el6.x86_64.rpm python-deltarpm-3.5-0.5.20090913git.el6.x86_64.rpm 

3. 安装http服务

yum -y install httpd

4. 删除http首页默认配置

rm -f /etc/httpd/conf.d/welcome.conf /var/www/error/noindex.html

5. 启动http服务

/etc/init.d/httpd start

6. 建立yum目录

mkdir /var/www/html/media

7. 创建数据仓库

createrepo /var/www/html/media

8. 效果图

wKioL1bFbKGjE3kUAADBmx02KuM537.jpg