新聞中心
1.查看wget是否安裝及wget安裝卸載方法
rpm -qa |grep "wget"
yum install -y wget 安裝
yum remove -y wget 卸載
2.備份 /etc/yum.repos.d/CentOS-Base.repo
cd /etc/yum.repos.d
mv CetOS-Base.repo CentOS-Base.repo.bk
3.下載新的CentOS-Base.repo到/etc/yum.repos.d/
如下的源用一個就好,三條命令任選其一
//更新為阿里云的源
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo
//更新為163的源
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.163.com/.help/CentOS-Base-163.repo
//更新為搜狐的源
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.sohu.com/help/CentOS-Base-sohu.repo
4.運行yum makecache生成緩存
yum clean all
yum makecache
5更新系統(tǒng)
yum -y update
另外有需要云服務器可以了解下創(chuàng)新互聯(lián)cdcxhl.cn,海內(nèi)外云服務器15元起步,三天無理由+7*72小時售后在線,公司持有idc許可證,提供“云服務器、裸金屬服務器、高防服務器、香港服務器、美國服務器、虛擬主機、免備案服務器”等云主機租用服務以及企業(yè)上云的綜合解決方案,具有“安全穩(wěn)定、簡單易用、服務可用性高、性價比高”等特點與優(yōu)勢,專為企業(yè)上云打造定制,能夠滿足用戶豐富、多元化的應用場景需求。
新聞標題:yum源更新-創(chuàng)新互聯(lián)
當前地址:http://www.dlmjj.cn/article/dodeec.html