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

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

[root@localhost network-scripts]# ll

【Linux】Linux没有网络,可能的解决方法_第1张图片

修改此文件中的ONBOOT=yes

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

【Linux】Linux没有网络,可能的解决方法_第2张图片

重启网络

[root@localhost network-scripts]# service network restart 

你可能感兴趣的:(Linux,网络)