centos配置网络yum源和epel源
1、备份
cd /etc/yum.repos.d/ && mkdir bak
mv * ./bak
2、配置yum源
wget -O /etc/yum.repos.d/Centps-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo
yum clean all
yum makecache
3、配置epel源
wget -O /etc/yum.repos.d/epel.repo https://mirrors.aliyun.com/repo/epel-7.repo
yum clean all
yum makecache
交流群: