Centos7 修改yum源为阿里云

it2022-05-05  116

1.备份原来的yum文件

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

2.下载阿里云yum配置到    /etc/yum.repos.d/

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

3.更新

yum makecacheyum -y update

           ...等待完成

转载于:https://www.cnblogs.com/funbin/p/11154168.html


最新回复(0)