在项目中偶尔会遇到点linux网络失联小问题
情况:linux 半小时前还是正常运行,突然网络中断
检查点:1、vim /etc/sysconfig/network-scripts/ifcfg-ens33 ip配置没变。
2、ping www.baidu.com 失败,无法连接
3、ifconfig 发现网卡不见
总结:以后再写
解决方案:按顺序执行下列3条指令
systemctl stop NetworkManager 临时关闭
systemctl disable NetworkManager 永久关闭网络管理命令
systemctl start network.service 开启网络服务