系统reboot执行完后发现xshell连接不上,查看ip地址发现网卡没有启动
执行systemctl restat network
报错:
Restarting network (via systemctl): Job for network.service failed because the control process exited with error code. See "systemctl status network.service" and "journalctl -xe" for details.
原因:
系统自带的NetworkManager这个管理套件搞得鬼,那么就关掉试试
systemctl stop NetworkManager
systemctl disable NetworkManager
再次启动网卡
systemctl restat network
搞定