参考地址:https://blog.51cto.com/u_13131218/2672147
以下为我的服务器操作记录
一 vi /etc/yum/pluginconf.d/fastestmirror.conf
#修改参数
enable=0
cd /etc/yum.repos.d
touch CentOS-Base.repo
打开一下连接复制内容 https://static.lty.fun/%E5%85%B6%E4%BB%96%E8%B5%84%E6%BA%90/SourcesList/Centos-6-Vault-Aliyun.repo
粘贴到 CentOS-Base.repo
yum clean all
yum makecache