centos 手动搭建yum仓库
2021-03-09 本文已影响0人
单曲_循环
环境:centos7.9 + nginx
镜像位置:/usr/share/nginx/html/centos
nginx关键配置:autoindex on
![](https://img.haomeiwen.com/i7399157/3e3a743bd3656924.png)
配置yum源文件,注意确保centos-local命名唯一
vim /etc/yum.repos.d/centos-local.repo
![](https://img.haomeiwen.com/i7399157/37df8981e4938373.png)
测试
yum clean all && yum makecache
![](https://img.haomeiwen.com/i7399157/f46cdde65aa9931e.png)
环境: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