六祎-安装Centos6.4没有网络【已解决】

step:1 用root用户进入该目录

cd /etc/sysconfig/network-scripts/

step2: 编辑该文件

vim ifcfg-eth0

step3: 修改文件

把no改为yes

ONBOOT=yes
NM_CONTROLLED=yes

 step4: 重启

/etc/init.d/network restart

 

posted @ 2022-04-26 00:55  你好,Alf  阅读(9)  评论(0编辑  收藏  举报