美文网首页
centos 手动搭建yum仓库

centos 手动搭建yum仓库

作者: 单曲_循环 | 来源:发表于2021-03-09 14:51 被阅读0次

环境:centos7.9 + nginx

镜像位置:/usr/share/nginx/html/centos

nginx关键配置:autoindex on

image.png

配置yum源文件,注意确保centos-local命名唯一
vim /etc/yum.repos.d/centos-local.repo

image.png

测试
yum clean all && yum makecache

image.png

相关文章

网友评论

      本文标题:centos 手动搭建yum仓库

      本文链接:https://www.haomeiwen.com/subject/xzxbqltx.html