更换yum源为阿里云

mkdir /etc/yum.repos.d/backup
mv /etc/yum.repos.d/*.repo /etc/yum.repos.d/backup
curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo
curl -o /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
yum makecache
yum repolist

安装wget

yum -y install wget

运行一键脚本挂载硬盘

wget https://down.sstp.top/auto_disk/auto_disk.sh
chmod +x auto_disk.sh
./auto_disk.sh