去阿里云

有源仓库 阿里云镜像官方站点

https://developer.aliyun.com/mirror/

先备份本机上的源

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

根据对应版本下载新的 CentOS-Base.repo 到 /etc/yum.repos.d/

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

或者

curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-8.repo

运行 yum makecache 生成缓存

[23:36:42 root@C8[ network-scripts]#yum makecache
Repository AppStream is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository PowerTools is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
CentOS-8 - AppStream 2.2 kB/s | 4.3 kB 00:01
CentOS-8 - Base - mirrors.aliyun.com 1.7 MB/s | 2.2 MB 00:01
CentOS-8 - Extras - mirrors.aliyun.com 20 kB/s | 5.5 kB 00:00
Metadata cache created.

最新文章

  1. 初试Code First(附Demo)
  2. Dapper关联查询
  3. js——<script>标签的加载顺序
  4. LINQ学习之旅(六)
  5. Maven使用教程
  6. JDBC实现往MySQL插入百万级数据
  7. Qt中widget重新setParent需要注意的问题
  8. Delphi笔记(GL_Scene安装及简单使用)
  9. Mysql 常用查询语句
  10. C++ 虚函数表解析(比较清楚,还可打印虚函数地址)
  11. 201521123091 《Java程序设计》第2周学习总结
  12. linux 运维常用工具表
  13. 利用lsof恢复进程占用的文件
  14. AI产品的商业模式
  15. Python 防止mysql 注入的两种方式
  16. 关于vscode插件 的一些体验
  17. JQuery 获取select 的value值和文本值
  18. linux下nginx日常操作
  19. 题解-POI2009 WSP-Island
  20. mybatis教程1(基本使用)

热门文章

  1. 解决spark streaming集成kafka时只能读topic的其中一个分区数据的问题
  2. openstack核心组件——cinder存储服务(11)
  3. python 第二节课内容和练习
  4. 容器云平台No.5~企业级私有镜像仓库Harbor V2.02
  5. 加权图的最小生成树、最短路径算法 - java实现
  6. RIP思维导图
  7. Alink漫谈(二十二) :源码分析之聚类评估
  8. Linux 文件系统之入门必看!
  9. C++实现链表---可直接运行通过
  10. 多线程之ReentrantLock篇(五)