延庆+山东项目

This commit is contained in:
zeaslity
2024-11-20 16:04:33 +08:00
parent 8c34f9018c
commit a0792c50cb
59 changed files with 16411 additions and 209 deletions

View File

@@ -0,0 +1,35 @@
#!/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.9 worker-4
192.168.0.10 worker-5
192.168.0.11 worker-6
192.168.0.84 worker-7
192.168.0.85 worker-8
192.168.0.86 worker-9
192.168.0.2 storage-1
192.168.0.15 gpu-1
192.168.0.12 gpu-2
192.168.0.13 gpu-3
EOF
yum clean all && yum makecache
36.134.71.138
Lingyun@443