wget: unable to resolve host address “mirrors.163.com” 的解决办法

时间:2015-09-28 00:13:32   收藏:0   阅读:5132

wget:无法解析主机地址。这就能看出是DNS解析的问题。

解决办法:

    1. 登入root(VPS)。
    2. 进入/etc/resolv.conf。
    3. 修改内容为下
      nameserver 8.8.8.8 #google域名服务器
      nameserver 8.8.4.4 #google域名服务器
评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!