用xshell连接本地centos7服务器,无法连接,于是vm查看了下服务器
用ifconfig看来内容,没有ip内容只有lo,如图:
于是去network-scripts查看了下,里面有ifcfg-ens32,
如图:
于是想到重启下network,但是提示没有network.service
failed to start network.service:Unit not found.
请问为什么会没有network呢,之前连接还好好的,就是现在无法连接了
https://jingyan.baidu.com/article/14bd256e49726dbb6d2612cd.html
楼上瞎说的。我也遇到和楼主一模一样的情况,楼主应该是卸载了iptables 关联了network部分服务一起卸载了。
可以参照此贴:https://cloud.tencent.com/developer/article/1362616