制作yum源
目标
步骤
一、安装httpd
$ yum -y install httpdDocumentRoot "/home/pshizh/apps/httpd/DocumentRoot"
Listen 132.122.239.2:8050二、安装createrepo
三、使用yum源(M2上)
常见问题
参考文档
Last updated
$ yum -y install httpdDocumentRoot "/home/pshizh/apps/httpd/DocumentRoot"
Listen 132.122.239.2:8050Last updated
<Directory "/home/pshizh/apps/httpd/DocumentRoot">
Options Indexes FollowSymlinks
AllowOverride None
Require all granted
</Directory>$ setenforce 0
$ systemctl start httpd$ yum -y install createrepo$ createrepo -d /home/pshizh/apps/httpd/DocumentRoot/centos$ createrepo --update /home/pshizh/apps/httpd/DocumentRoot/centos[qiaojing]
name=qiaojing
baseurl=http://132.122.239.2:8050/centos
enabled=1
gpgcheck=0$ yum clean all & yum makecache$ yum list | grep qiaojing