环境:centos7.9 + nginx
镜像位置:/usr/share/nginx/html/centos
nginx关键配置:autoindex on
配置yum源文件,注意确保centos-local命名唯一
vim /etc/yum.repos.d/centos-local.repo
测试
yum clean all && yum makecache
环境:centos7.9 + nginx
镜像位置:/usr/share/nginx/html/centos
nginx关键配置:autoindex on
配置yum源文件,注意确保centos-local命名唯一
vim /etc/yum.repos.d/centos-local.repo
测试
yum clean all && yum makecache
本文标题:centos 手动搭建yum仓库
本文链接:https://www.haomeiwen.com/subject/xzxbqltx.html
网友评论