VirtualBox下安装好CentOS默认是没有启用网络连接的,我们需要手动启用,方法如下:
- 首先进到目录
cd /etc/sysconfig/network-scripts
- 编辑
ifcfg-enp0s3
vi ifcfg-enp0s3

- 具体修改如下:
ONBOOT=no
改为
ONBOOT=yes # 自动开启网络连接
- 重启服务
service network restart
VirtualBox下安装好CentOS默认是没有启用网络连接的,我们需要手动启用,方法如下:
cd /etc/sysconfig/network-scripts
ifcfg-enp0s3
vi ifcfg-enp0s3
ONBOOT=no
改为
ONBOOT=yes # 自动开启网络连接
service network restart
本文标题:安装完CentOS7 如何启用网络连接
本文链接:https://www.haomeiwen.com/subject/tqrkettx.html
网友评论