方法一、

  1、打开 vi /etc/sysconfig/network-scripts/ifcfg-eth0(每个机子都可能不一样,但格式会是“ifcfg-eth数字”),把ONBOOT=no,改为ONBOOT=yes

   注意:这里可以先 cd /etc/sysconfig/network-scripts 查看配置文件名,ls查看文件列表

  2、重启网络:service network restart

方法二、

  1、打开 vi /etc/resolv.conf,增加 nameserver 8.8.8.8

  2、重启网络: service network restart

相关文章:

  • 2021-10-17
  • 2021-05-22
  • 2022-03-06
  • 2022-02-02
  • 2022-12-23
  • 2021-10-08
  • 2021-04-10
猜你喜欢
  • 2022-01-01
  • 2021-12-25
  • 2021-05-17
  • 2021-06-09
  • 2021-12-06
相关资源
相似解决方案