美文网首页
CentOS一键更换阿里云源的脚本

CentOS一键更换阿里云源的脚本

作者: 瑶看此水一桩红 | 来源:发表于2020-06-09 21:25 被阅读0次

echo 更换CentOS的源为阿里云

echoChangethesourceofCentOStoalicloud

echoBy:Moxin

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

sed -i -e'/mirrors.cloud.aliyuncs.com/d'-e'/mirrors.aliyuncs.com/d'/etc/yum.repos.d/CentOS-Base.repo

yumupdate

脚本git地址:https://github.com/Moxin1044/CentOSaliyuncould.git

相关文章

网友评论

      本文标题:CentOS一键更换阿里云源的脚本

      本文链接:https://www.haomeiwen.com/subject/xszetktx.html