教程集 www.jiaochengji.com
教程集 >  操作系统  >  centos/Redat  >  正文 解决 wget下载出现failed: Temporary failure in name resolution错误

解决 wget下载出现failed: Temporary failure in name resolution错误

发布时间:2014-07-20   编辑:jiaochengji.com
我使用的vps服务器是CentOS系统,在使用wget下载Apache时出现如下错误提示:Resolving http://apache.freelamp.com//httpd/httpd-2.2.17.tar.gz failed: Temporary failure in name resolution.”

    我使用的vps服务器是CentOS系统,在使用wget下载Apache时出现如下错误提示:
    Resolving http://apache.freelamp.com//httpd/httpd-2.2.17.tar.gz failed: Temporary failure in name resolution.”
    从提示来看,似乎是链接失效了,但是在火狐中点击点击却提示下载,说明是网络配置出现了问题。
    网上说是/etc/resolv.conf中的DNS配置错误,或者没有这个配置,说是要在/etc/resolv.conf中加入dns。

    用vi打开/etc/resolv.conf,发现里面是空的。
    于是联系主机服务商,要我发SSH的用户名与密码,片刻之后回答我说搞定了。
    再次用vi打开/etc/resolv.conf发现里面多了两行:
    nameserver   202.96.209.133
    nameserver   61.129.88.123

    将上面的dns记了下来,下次重装系统后自己添加就行了。
    注意添加dns地址后记得运行 service network restart 重启网络以使修改生效。

您可能感兴趣的文章:
解决 wget下载出现failed: Temporary failure in name resolution错误
发布程序时出现“类型ASP.global_asax同时存在于...”错误的解决办法
安装MysQL出现No curses/termcap library found错误的解决方法
php include提示failed to open stream: Permission denied in错误
php使用fopen、curl获取网站及远程服务器信息的实例代码
php提示 Warning: touch() [function.touch]: Utime failed: Permission denied in错误
mysql中Relay log read failure master slave的解决方法
phpmyamdin安装出现Warning: require(./libraries/Error_Handler.class.php) 错误解决办法
组件访问被拒绝 --“/”应用程序中的服务器错误的解决方法
JDBC中的Communications link failure due to underlying exception错误

[关闭]
~ ~