vim /etc/resolv.conf 加上下面两句: nameserver 8.8.8.8 #google域名服务器nameserver 8.8.4.4 #google域名服务器 转载于:https://www.cnblogs.com/gpfeisoft/p/6084270.html