[Errno 14] curl#6 - "Could not resolve host: centos.ustc.edu.cn; 未知的错误"

来源:互联网 发布:刀塔传奇英雄数据 编辑:程序博客网 时间:2024/06/05 06:03

在CentOS中使用mysql创建多实例时,要用到tree命令,发现centos上面没有默认安装。于是手动yum -y install tree 安装tree命令,出现如题错误。
后来发现是DNS服务器错误。于是修改一下 /etc/resolv.conf 文件。

[root@localhost /]# vi /etc/resolv.conf# Generated by NetworkManagerdomain localdomainsearch localdomainnameserver 192.168.187.2nameserver 8.8.8.8

添加一个nameserver 8.8.8.8完成。

0 0