CentOS修改yum源:
1.备份/etc/yum.repos.d/CentOS-Base.repo文件
cd /etc/yum.repos.d/
mv CentOS-Base.repo CentOS-Base.repo.back
2.下载阿里云的Centos-7.repo和epel-7.repo文件
yum -y install wget
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
3.重新加载yum
yum clean all
yum makecache

相关文章:

  • 2021-09-10
  • 2021-07-09
  • 2022-01-29
  • 2021-11-18
  • 2022-12-23
  • 2022-12-23
  • 2021-12-18
猜你喜欢
  • 2022-12-23
  • 2021-06-11
  • 2021-11-21
  • 2022-12-23
  • 2022-12-23
  • 2021-08-25
  • 2022-01-07
相关资源
相似解决方案