ssh下执行 cd /etc/yum.repos.d/ & sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-* & sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-* &
#!/bin/bash bashPath="http://mirrors.aliyun.com/aliyunlinux/15.01/os/x86_64/" bashDownPath="/opt/aliyunlinux/15.01/oss/x86_64/" if [ ! -d $bashdownpath ]; then mkdir -p $bashdownpath fi function recur