vim编辑/etc/resolv.conf文件,加上以下内容: nameserver 8.8.8.8 nameserver 114.114.114.114 保存文件。 使用 ping www.baidu.com测试是否能够访问。