一键更换阿里源,下载拓展源

更换阿里源

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

下载拓展源

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

你可能感兴趣的:(linux,centos,服务器)