質(zhì)量為本、客戶為根、勇于拼搏、務(wù)實創(chuàng)新
介紹下centos系統(tǒng)更換阿里云yum源
1. 首先備份下舊的yun源
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
2. 下載新的CentOS-Base.repo到/etc/yum.repos.d 根據(jù)您系統(tǒng)的版本選擇下載
Centos6
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo
Centos7
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
Centos8
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-8.repo
3. 更新緩存
yum clean all && yum makecache
yum update -y
教程完畢,希望該教程能讓你get到新技能 后期在使用尊云服務(wù)器有什么問題隨時咨詢我們尊云售后服務(wù)團(tuán)隊。