【Linux】Linux没有网络,可能的解决方法

[root@localhost etc]# cd /etc/sysconfig/network-scripts/

[root@localhost network-scripts]# ll

在这里插入图片描述

修改此文件中的ONBOOT=yes

[root@localhost network-scripts]# vim ifcfg-ens33 

在这里插入图片描述

重启网络

[root@localhost network-scripts]# service network restart 
为天地立心,为生民立命,为往圣继绝学,为万世开太平。
原文地址:https://www.cnblogs.com/rxx1005/p/12527241.html