Centos6无法使用yum源的问题 /var/cache/yum/x86_64/6/base/mirrorlist
1,修改fastestmirror.conf的配置参数:
sed -i "s|enabled=1|enabled=0|g" /etc/yum/pluginconf.d/fastestmirror.conf
2,备份文件:
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak
3,使用阿里云的:
curl -o /etc/yum.repos.d/CentOS-Base.repo https://www.xmpan.com/Centos-6-Vault-Aliyun.repo
香港服务器或者海外:
curl -o /etc/yum.repos.d/CentOS-Base.repo https://www.xmpan.com/Centos-6-Vault-Official.repo
成功后,执行 yum install 目标应用
原文链接:https://blog.csdn.net/qq_31026281/article/details/115662746