方法一:
[root@localhost yum.repos.d]# cat /etc/resolv.conf nameserver 8.8.8.8
方法二:
[root@localhost network-scripts]# cat ifcfg-eth0 ### ONBOOT=yes###