entOS系统自带的更新源的速度在国内非常慢,在国内为了让CentOS6使用速度较快快的YUM更新源,建议选择163(网易)的更新源。

1.下载repo文件
wget http://mirrors.163.com/.help/CentOS6-Base-163.repo 
2.备份并替换系统的repo文件
[root@localhost ~]# cd /etc/yum.repos.d/ 
[root@localhost ~]# mv CentOS-Base.repo CentOS-Base.repo.bak 
[root@localhost ~]# mv CentOS6-Base-163.repo CentOS-Base.repo 
3.执行yum源更新
[root@localhost ~]# yum clean all 
[root@localhost ~]# yum makecache 
[root@localhost ~]# yum update 

 
 

相关文章:

  • 2021-07-10
  • 2021-11-27
  • 2021-08-01
  • 2021-08-01
  • 2021-11-04
  • 2021-09-24
猜你喜欢
  • 2021-05-29
  • 2021-11-27
  • 2022-01-12
  • 2022-12-23
  • 2021-09-01
  • 2021-11-21
相关资源
相似解决方案