1、先备份一下以后想连网还能恢复cat /etc/resolv.conf /etc/resolv.conf.bak清空配置echo “” /etc/resolv.conf2、恢复cat /etc/resolv.conf.bak /etc/resolv.conf