找回密码
 立即注册
查看: 680|回复: 0

centos7问题

[复制链接]

208

主题

6

精华

212

金币

技术维护QQ:515138

积分
454
发表于 2026-1-13 09:58:36 | 显示全部楼层 |阅读模式
centos7问题



  1. # CentOS-Base.repo
  2. #
  3. # The mirror system uses the connecting IP address of the client and the
  4. # update status of each mirror to pick mirrors that are updated to and
  5. # geographically close to the client.  You should use this for CentOS updates
  6. # unless you are manually picking other mirrors.
  7. #
  8. # If the mirrorlist= does not work for you, as a fall back you can try the
  9. # remarked out baseurl= line instead.
  10. #
  11. #
  12. [base]
  13. name=CentOS-$releasever - Base - mirrors.huaweicloud.com
  14. baseurl=https://mirrors.huaweicloud.com/centos/$releasever/os/$basearch/
  15. #mirrorlist=https://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
  16. gpgcheck=1
  17. gpgkey=https://mirrors.huaweicloud.com/centos/RPM-GPG-KEY-CentOS-7
  18. #released updates
  19. [updates]
  20. name=CentOS-$releasever - Updates - mirrors.huaweicloud.com
  21. baseurl=https://mirrors.huaweicloud.com/centos/$releasever/updates/$basearch/
  22. #mirrorlist=https://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
  23. gpgcheck=1
  24. gpgkey=https://mirrors.huaweicloud.com/centos/RPM-GPG-KEY-CentOS-7
  25. #additional packages that may be useful
  26. [extras]
  27. name=CentOS-$releasever - Extras - mirrors.huaweicloud.com
  28. baseurl=https://mirrors.huaweicloud.com/centos/$releasever/extras/$basearch/
  29. #mirrorlist=https://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
  30. gpgcheck=1
  31. gpgkey=https://mirrors.huaweicloud.com/centos/RPM-GPG-KEY-CentOS-7
  32. #additional packages that extend functionality of existing packages
  33. [centosplus]
  34. name=CentOS-$releasever - Plus - mirrors.huaweicloud.com
  35. baseurl=https://mirrors.huaweicloud.com/centos/$releasever/centosplus/$basearch/
  36. #mirrorlist=https://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
  37. gpgcheck=1
  38. enabled=0
  39. gpgkey=https://mirrors.huaweicloud.com/centos/RPM-GPG-KEY-CentOS-7
复制代码
  1. wget -O /etc/yum.repos.d/docker-ce.repo https://mirrors.huaweicloud.com/docker-ce/linux/centos/docker-ce.repo
复制代码

  1. sudo sed -i 's+download.docker.com+mirrors.huaweicloud.com/docker-ce+' /etc/yum.repos.d/docker-ce.repo
复制代码
  1. yum makecache fast
复制代码




本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
网站建设,公众号小程序开发,系统定制,软件App开发,技术维护【联系我们】手机/微信:17817817816 QQ:515138

QQ|Archiver|自丢网 ( 粤ICP备2024252464号-1 )

GMT+8, 2026-2-26 07:53

专注于网站建设,公众号小程序制作,商城小程序,系统定制,软件App开发

【联系我们】手机/微信:17817817816 QQ:515138

快速回复 返回顶部 返回列表