更换为阿里云镜像 cp /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak curl http://mirrors.aliyun.com/repo/Centos-7.repo | grep -v 'mirrors.aliyuncs.com' > /etc/yum.repos.d/CentOS-Base.repo curl http://mirrors.aliyun.com/repo/epel-7.repo | grep -v 'mirrors.aliyuncs.com' > /etc/yum.repos.d/epel-7.repo 注:其中 grep -v 'mirrors.aliyuncs.com' 是因为此域名只针对阿里云的虚机可访问,对外不可访问。 yum clean all yum makecache有任何疑问请点击留言: 留言板
本文发布于http://wiki.too2.net,转载请联系本人。