05
03
月
2025
一键更换脚本
一.国内源
bash <(curl -sSL https://linuxmirrors.cn/main.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
执行完上面三行命令就好了
延伸阅读
- RUST腐蚀面板服务器安装插件教程
- 流放者柯南ConanExiles服务器服务器安装Mod模组教程
- 方舟:生存进化修改参数教程
- 流放者柯南ConanExiles服务器搭建教程
- 云电脑挂机宝远程连接教程
更多阅读
- 上一篇:没有了
- 下一篇:云电脑挂机宝远程连接教程