年终特惠活动
最新活动区,多地区选择 云服务器限时优惠,高性能保障,安全稳定,不支持退款
携手合作伙伴,实现业务上的双向合作共赢
我们为您提供全方位的支持与服务,确保您在使用我们的云服务时无忧无虑。
10+年商誉沉淀,深耕中国香港及海外高端资源
sudo获取权限。cp /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak
cat /etc/centos-release命令可查看系统版本,具体命令如下:
| 系统版本 | 阿里云源命令 | 清华大学源命令 |
|---|---|---|
| CentOS 7 | wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo |
wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.tuna.tsinghua.edu.cn/repo/Centos-7.repo |
| CentOS 8 | wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-8.repo |
wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.tuna.tsinghua.edu.cn/repo/Centos-8.repo |
若系统没有 wget 工具,可先执行yum install -y wget安装。 |
yum clean all # 清除原有缓存
yum makecache # 生成本地缓存
yum repolist查看当前可用的软件源仓库,也可尝试安装软件测试,比如:
服务热线:
400-969-8169电子邮箱:
jiuyun@9yicp.cn商务QQ:
8894382
小程序
公众号
企业微信