yum源安装出错解决方法

当用yum install方式安装出现以下类似信息:

http://mirrors.aliyun.com/centos/6.9/os/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'mirrors.aliyun.com'"

很大原因是因为当前系统的域名解析出问题,编辑resolv.conf文件

vim /etc/resolv.conf

加上个人想指向的dns服务器即可,我这里用的是8.8.8.8

nameserver 8.8.8.8

猜你喜欢

转载自blog.csdn.net/qq_34457768/article/details/80484879