...........................................................................................................................................................
问题描述:
...........................................................................................................................................................
hadoop102能连上,hadoop103、hadoop104无法连接,以前都能连上,今天突然就连不上了
..........................................................................................................................................................
..........................................................................................................................................................
解决方案:
..........................................................................................................................................................
使用ifconfig命令查看有没有ens33
...........................................................................................................................................................
如果没有的话那就证明你的问题和我一样
...........................................................................................................................................................
...........................................................................................................................................................
依次使用以下命令:
...........................................................................................................................................................
systemctl stop NetworkManager
systemctl restart network.service
service network restart
...........................................................................................................................................................
这三个命令都是用于控制网络服务的命令。
...........................................................................................................................................................
1. systemctl stop NetworkManager:停止NetworkManager服务,该服务负责管理网络连接和设置。
2. systemctl restart network.service:重启network.service服务,该服务负责启动和管理网络连接。
3. service network restart:重启network服务,同样负责启动和管理网络连接。
建议使用root权限,懒得输密码。
...........................................................................................................................................................
ifconfig一下发现ens33重启成功
hadoop104重复上述步骤,问题解决