The clusters are all set up. I don’t know why the master can’t connect to slave1 suddenly, but slave0 is connected. . .
Table of contents
1 Make sure there is no problem with the dns settings on the slave1 virtual machine
2 Check whether the network configuration is normal,
3 Check whether the ssh service is enabled
4 Check whether the slave1 firewall is closed, it is recommended to close the firewall permanently
5 Check the ip of slave1 that cannot be connected
1 Make sure there is no problem with the dns settings on the slave1 virtual machine
vim /etc/resolv.conf
Add in /etc/resolv.conf
nameserver 8.8.8.8
nameserver 8.8.4.4
nameserver 114.114.114.114
2 Check whether the network configuration is normal,
Modify /etc/sysconfig/network-scripts/ifcfg-ens33 as shown below
vim /etc/sysconfig/network-scripts/ifcfg-ens33
3 Check whether the ssh service is enabled
ps -e | grep ssh
4 Check whether the slave1 firewall is closed, it is recommended to close the firewall permanently
Linux shutdown firewall command (permanent shutdown)
5 Check the ip of slave1 that cannot be connected
(My problem is this...) Ifconfig checks the ip of slave1, and finds that the ip of my slave1 has changed from 192.168.10.132 to 192.168.10.128 for some unknown reason. . . .
Enter gedit /etc/hosts on the host master to modify the previously set slave1 ip. . . Don't forget to modify /etc/hosts on slave0 and slave1 respectively, and also modify its changed ip in slave1's /etc/sysconfig/network-scripts/ifcfg-ens33
Then go to ssh slave1 in the host and you will be able to connect