解决方法:
更换镜像源即可。
依次执行如下命令:
cd /etc/yum.repos.d mv centos-Base.repo CentOS-Base.repo.bak vi CentOS-Base.repo
(推荐教程:centos使用教程)
修改配置如下:
[base] name=Red Hat Enterprise Linux 7.0 -Base baseurl=http://mirrors.163.com/centos/7/os/$basearch/ gpgcheck=1 gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-7 [update] name=Red Hat Enterprise Linux 7.0 -Updates baseurl=http://mirrors.163.com/centos/7/updates/$basearch/ gpgcheck=1 gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-7 [extras] name=Red Hat Enterprise Linux 7.0 -Extras baseurl=http://mirrors.163.com/centos/7/extras/$basearch/ gpgcheck=1 gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-7
保存即可。
相关视频教程推荐:centos使用教程
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END
喜欢就支持一下吧
相关推荐