标签:
1、登录mirrors.163.com
2、点击centos后面的“centos使用帮助”
3、下载CentOS7-Base-163.repo
4、sudo mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
5、把CentOS7-Base-163.repo放到/etc/yum.repos.d/目录
6、验证163的repo是否正确配置。
指令如下: yum repolist all
7、使用yum时报错:http://mirrors.163.com/centos/6.5/os/i386/Packages/mlocate-0.22.2-4.el6.i686.rpm: [Errno 14] PYCURL ERROR 6 - "Couldn‘t resolve host ‘mirrors.163.com‘"Trying other mirror.
解决方法
在/etc/resolv.conf 添加nameserver 8.8.8.8
标签:
原文地址:http://www.cnblogs.com/fubaizhaizhuren/p/yum.html