木木的布劳格

  • 首页
  • 学无止尽
  • 愉悦生活
  • 中医
  • 软件
  • 单反摄影
  • 收藏的软件
  • About Me
木木的布劳格
记录生活点滴的静默博客
  1. 首页
  2. 软件
  3. 正文

centos 一键更换脚本

12 2 月, 2026 20点热度 0人点赞 0条评论

一.国内源
bash <(curl -sSL https://gitee.com/SuperManito/LinuxMirrors/raw/main/ChangeMirrors.sh)
二.推荐使用一

国内

bash <(curl -sSL https://linuxmirrors.cn/main.sh)

国内教育网

bash <(curl -sSL https://linuxmirrors.cn/main.sh) --edu 

海外地区

bash <(curl -sSL https://linuxmirrors.cn/main.sh) --abroad 
手动更换
CentOS7更换镜像源
1、先安装wget

yum install -y wget
2、打开阿里镜像http://mirrors.aliyun.com/

点击,帮助,查看详情:
3、下载CentOS 7的对应的repo文件

wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
#或者
curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
4、更新镜像源

yum clean all

yum makecache

yum -y update

执行完上面三行命令就好了
本作品采用 知识共享署名 4.0 国际许可协议 进行许可
标签: 暂无
最后更新:12 2 月, 2026

chat

这个人很懒,什么都没留下

点赞
< 上一篇

文章评论

razz evil exclaim smile redface biggrin eek confused idea lol mad twisted rolleyes wink cool arrow neutral cry mrgreen drooling persevering
取消回复
标签聚合
win10 python CENTOS PHP wm 序列号 激活 c#
广告
分类
  • C sharp
  • Delphi
  • Python
  • VPS
  • 中医
  • 伤寒论
  • 其他
  • 单反摄影
  • 学无止尽
  • 工作相关
  • 愉悦生活
  • 未分类
  • 软件

COPYRIGHT © 2023 木木的布劳格. ALL RIGHTS RESERVED.

Theme Kratos Made By Seaton Jiang