#!/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.0.6 master-node 192.168.0.19 worker-1 192.168.0.8 worker-2 192.168.0.3 worker-3 192.168.0.13 storage-1 192.168.0.16 ai-1 EOF reverse 42.192.52.227 34. root 10.190.217.227 3Ycg4ZPsG#Z!