當前位置:編程學習大全網 - 圖片素材 - centos7 怎麽更換鏡像源

centos7 怎麽更換鏡像源

首先備份/etc/yum.repos.d/CentOS-Base.repo

mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup

2.下載對應版本repo文件, 放入/etc/yum.repos.d/(操作前請做好相應備份)

Centos7:

wget -P /etc/yum.repos.d?/.help/CentOS7-Base-163.repo

Centos6:

wget -P /etc/yum.repos.d?/.help/CentOS6-Base-163.repo

Centos5:

wget -P /etc/yum.repos.d?/.help/CentOS5-Base-163.repo

3.運行以下命令生成緩存

yum clean all

yum makecache

  • 上一篇:誰幫幫我描寫壹下這個圖片的衣服
  • 下一篇:抗戰片李大本事是哪部電視劇
  • copyright 2024編程學習大全網