
查看slave1和slave2,发现hosts文件没有编辑
![]()
将master节点的/etc/hosts文件发到slave1和slave2上
scp -r /etc/hosts root@slave1:/etc/hosts
scp -r /etc/hosts root@slave2:/etc/hosts
重启集群
查看

成功
文章描述了如何将master节点的/etc/hosts文件通过scp命令复制到slave1和slave2,以便更新主机映射,然后重启集群以确保配置生效。

查看slave1和slave2,发现hosts文件没有编辑
![]()
将master节点的/etc/hosts文件发到slave1和slave2上
scp -r /etc/hosts root@slave1:/etc/hosts
scp -r /etc/hosts root@slave2:/etc/hosts
重启集群
查看

成功
3947
4361
1262
1705

被折叠的 条评论
为什么被折叠?