首页 > 系统相关 >虚拟机连接xshell报错 Could not connect to 'hadoop102' (port 22): Connection failed.

虚拟机连接xshell报错 Could not connect to 'hadoop102' (port 22): Connection failed.

时间:2023-03-06 20:13:15浏览次数:49  
标签:network 22 虚拟机 systemctl 报错 NetworkManager hadoop102

在hadoop102中打开终端
ping一下百度
ping www.daidu.com
输入命令ifconfig
出现下图这样的情况 发现没有ens33
image
重启network
service network restart
报错结尾出现红字Failure
解决方法:关闭NetworkManager
systemctl stop NetworkManager
systemctl disable NetworkManager
#重启
systemctl start network.service
不报错结尾是绿字OK

标签:network,22,虚拟机,systemctl,报错,NetworkManager,hadoop102
From: https://www.cnblogs.com/dhl-kzh/p/17185205.html

相关文章