修改网络配置即可 $ vim /etc/resolv.conf #打开网络配置文件 打开之后添加如下语句 nameserver 114.114.114.114 # 指定这个ip的域名解析服务 最后,使该命令生效即可 $ sudo /etc/init.d/networking restart