在安装完centos后,对网络配置成功,在使用yum的时候报一下错误:
[root@localhost src]# yum search wget
Loaded plugins: fastestmirror
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=i386&repo=os error was
14: PYCURL ERROR 6 - "Couldn't resolve host 'mirrorlist.centos.org'"
Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again
解决办法:
cat /etc/resolv.conf
nameserver 8.8.8.8
转载于:https://blog.51cto.com/yyping2008/1150027