方法一:

[root@localhost yum.repos.d]# cat /etc/resolv.conf
nameserver 8.8.8.8

方法二:

[root@localhost network-scripts]# cat ifcfg-eth0 
###
ONBOOT=yes
###

 

posted on 2022-12-26 18:25  属于我的梦,明明还在  阅读(174)  评论(0)    收藏  举报