centos 切换阿里源脚本
#!/bin/bashmv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bakif [ $? -eq 0 ];then echo "移除成功"ficd /etc/yum.repos.dwget -O CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repoif [ $? -eq 0 ]; then echo "