一.
国内源
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
执行完上面三行命令就好了
Copyright © 2013-2024 8a.hk All Rights Reserved. 八艾云 版权所有 中山市八艾云计算有限公司 粤ICP备14095776号 粤公网安备 44200002445359号
增值电信业务经营许可证编号:B1-20222012
代理域名注册服务机构:西部数码