CentOS 更换yum源为阿里云yum install -y –enablerepo aliyun yum

echo -e “[NOT-CERTIFIED]\nname=NOT-CERTIFIED\nbaseurl=http://xxx/openopen/not-cert/rhel7-x86_64/latest/RPMS.all\nenabled=0\ngpgcheck=0” > /etc/yum.repos.d/NOT-CERTIFIED.repo
yum install -y –enablerepo=NOT-CERTIFIED lrzsz

wget -O /etc/yum.repos.d/docker-ce.repo https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo

yum install epel-release

curl -o /etc/yum.repos.d/epel.repo https://mirro


数据运维技术 » CentOS 更换yum源为阿里云yum install -y –enablerepo aliyun yum