ITPub博客

首页 > Linux操作系统 > Linux操作系统 > CentOS7 阿里云镜像配置方法

CentOS7 阿里云镜像配置方法

原创 Linux操作系统 作者:Aug_Spark 时间:2022-02-16 14:35:33 0 删除 编辑

CentOS 镜像

大家也可以打开阿里云官方镜像站: https://developer.aliyun.com/mirror/查看详细说明。

简介

CentOS,是基于 Red Hat Linux 提供的可自由使用源代码的企业级 Linux 发行版本;是一个稳定,可预测,可管理和可复制的免费企业级计算平台。

下载地址:  阿里云开源镜像站资源目录
阿里云开源镜像站资源目录

配置方法

1. 备份

mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup

2. 下载新的 CentOS-Base.repo 到 /etc/yum.repos.d/

CentOS 7

wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo

3. 运行 yum makecache 生成缓存


来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/70012008/viewspace-2855957/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2021-12-24

  • 博文量
    38
  • 访问量
    16794