延庆+山东项目
This commit is contained in:
35
44-202411-厦门移动扩容/0.0-dependencies.sh
Normal file
35
44-202411-厦门移动扩容/0.0-dependencies.sh
Normal 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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user