add
This commit is contained in:
33
24-新疆移动/0.0-dependencies.sh
Normal file
33
24-新疆移动/0.0-dependencies.sh
Normal file
@@ -0,0 +1,33 @@
|
||||
#!/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.14 master-node
|
||||
192.168.0.2 worker-1
|
||||
192.168.0.3 worker-1
|
||||
192.168.0.6 worker-1
|
||||
192.168.0.21 storage-1
|
||||
192.168.0.7 gpu-1
|
||||
EOF
|
||||
|
||||
ping worker-1
|
||||
|
||||
yum clean all && yum makecache
|
||||
|
||||
|
||||
36.133.201.78
|
||||
|
||||
root
|
||||
|
||||
LYlf20240403@
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user