CentOS7更换镜像源
生活随笔
收集整理的這篇文章主要介紹了
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
總結
以上是生活随笔為你收集整理的CentOS7更换镜像源的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: centos 安装ftp FileZil
- 下一篇: Graphic Device