在resolv.conf文件加入 vi /etc/resolv.conf nameserver 8.8.8.8 nameserver 8.8.4.4 后保存,重启下网络 service network restart