#!/usr/bin/env bash

# 需要在所有的节点执行

hostnamectl set-hostname master-node

sed -i "/search/ a nameserver 223.5.5.5"  /etc/resolv.conf

echo "AllowTcpForwarding yes" >> /etc/ssh/sshd_config
systemctl restart sshd

cat >> /etc/hosts << EOF
192.168.211.215 master-node
192.168.211.213 worker-1
192.168.214.47 worker-2
EOF

ping worker-1

yum clean all && yum makecache


36.133.201.78

root

LYlf20240403@



