用网易的源会快很多,步骤如下:http://mirrors.163.com/.help/centos.html

1、首先备份/etc/yum.repos.d/CentOS-Base.repo

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

2、根据CentOS版本选择操作

 

CentOS-6

  1. wget http://mirrors.163.com/.help/CentOS6-Base-163.repo  -O /etc/yum.repos.d/CentOS-Base.repo
  2. yum makecache

相关文章:

  • 2022-12-23
  • 2022-03-03
  • 2022-12-23
  • 2021-11-23
  • 2022-01-21
  • 2021-10-22
  • 2021-11-27
猜你喜欢
  • 2021-06-04
  • 2021-10-09
  • 2021-06-04
  • 2021-12-12
  • 2022-12-23
  • 2021-12-09
  • 2022-12-23
相关资源
相似解决方案