虚拟机 安装linux系统无法访问网络

  1. 虚拟机 安装linux系统无法访问网络
    切换到root 用户=
[java@localhost network-scripts]$ su root

  1. 进入系统目录: cd /etc/sysconfig/network-scripts/
[root@localhost network-scripts]# cd /etc/sysconfig/network-scripts/

  1. 打开配置文件 ifcfg-ens33
    在这里插入图片描述
[root@localhost network-scripts]#  vim  ifcfg-ens33
--- 修改配置 为YES
ONBOOT=yes


  1. 重启服务
[root@localhost network-scripts]# service network restart

猜你喜欢

转载自blog.csdn.net/qq_16183731/article/details/107649236