有没有遇到使用yum安装软件慢如龟,默认的系统使用的是centos的镜像源,我们可以修改为国内镜像源加速软件安装

 

  163)http://mirrors.163.com/.help/centos.html

 1)备份源文件

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

   2)下载对应文件到/etc/yum.repos.d下

wget -O /etc/yum.repos.d/CentOS-Base.repo  http://mirrors.163.com/.help/CentOS7-Base-163.repo

安装epel.repo源
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo

 3)生成缓存

yum clean all
yum makecache

 

相关文章:

  • 2022-03-09
猜你喜欢
  • 2022-12-23
  • 2021-07-27
  • 2021-10-21
  • 2021-08-31
  • 2021-11-07
  • 2021-07-16
相关资源
相似解决方案