Files
zeaslity 437acbeb63 add
2024-10-30 16:30:51 +08:00

26 lines
444 B
Bash

#!/usr/bin/env bash
# 需要在所有的节点执行
hostnamectl set-hostname storage-1
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.8 master-node
192.168.0.65 worker-1
192.168.0.45 worker-2
192.168.0.7 worker-3
192.168.0.2 storage-1
EOF
yum clean all && yum makecache
36.134.71.138