歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux綜合 >> 學習Linux >> Centos下替換yum源為阿裡雲源

Centos下替換yum源為阿裡雲源

日期:2017/3/3 17:46:19   编辑:學習Linux

Centos下替換yum源為阿裡雲源

Centos下替換yum源為阿裡雲源


阿裡雲Linux安裝鏡像源地址:http://mirrors.aliyun.com/
第一步:備份原鏡像文件
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak
第二步:下載CentOS-Base.repo 到/etc/yum.repos.d/
CentOS 5
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-5.repo
CentOS 6
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo
第三步:運行yum makecache生成緩存
yum clean all

yum makecache

第四步:等待下載完成

http://xxxxxx/Linuxjc/1184748.html TechArticle

Copyright © Linux教程網 All Rights Reserved