- 修改/etc/resolv.conf文件
[root@lihui ~]# vi /etc/resolv.conf
nameserver 8.8.8.8
nameserver 114.114.114.114
- 重启
[root@lihui ~]# service network restart
[root@lihui ~]# vi /etc/resolv.conf
nameserver 8.8.8.8
nameserver 114.114.114.114
[root@lihui ~]# service network restart
转载于:https://www.cnblogs.com/youxiu326/p/10540747.html