curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
curl -o /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
yum clean all
yum makecache

 

上边是centos7,centos6把7换成6即可

相关文章:

  • 2021-12-24
  • 2021-06-03
  • 2022-12-23
  • 2022-12-23
  • 2021-10-24
  • 2021-12-14
  • 2021-11-12
  • 2022-12-23
猜你喜欢
  • 2021-09-14
  • 2022-02-07
  • 2022-02-10
  • 2021-12-22
  • 2022-12-23
  • 2022-12-23
  • 2021-07-30
相关资源
相似解决方案