安装好虚拟机后
修改主机名:hostnamectl set-hostname master
查看自己虚拟机网关IP为多少
修改ip:vim /etc/sysconfig/network-scripts/ifcfg-ens32
其他几台节点的IP配置。
master:192.168.187.100
slave1:192.168.187.101
slave2:192.168.187.102
slave3:192.168.187.103
C:\Windows\System32\drivers\etc\hosts文件添加虚拟主机
192.168.187.100 master
192.168.187.101 slave1
192.168.187.102 slave2
192.168.187.103 slave3
还有设置dns(我就是这个没设置,然后一直只能ping通ip,Ping不同域名)
vim /etc/resolv.conf

重启网卡:systemctl restart network
注意:在主机下,按w