今天早上xshell连接不到虚拟机了,我在虚拟机里面查看原来是防火墙出了问题,ping不通百度。解决办法:
首先查看自己的网络状态
systemctl status network.service
其次依次输入
systemctl stop NetworkManager
systemctl disable NetworkManager
systemctl start network.service
执行ip addr命令
查看自己配的ip
再次执行systemctl status network.service
状态为active既可以连接xshell了
