CentOS 7镜像源配置

刚安装的CentOS7系统由于源地址是国外的原因导致yum下载软件报错,这时可以替换成国内的yum源

 CentOS7

wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo

如果是安装minal系统由于没有wget命令这时可以使用curl

curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo

posted @ 2024-07-04 19:31  ~技术小白  阅读(445)  评论(0)    收藏  举报