Files
CmiiDeploy/13-深圳政数局/0.0-dependencies.sh
zeaslity 437acbeb63 add
2024-10-30 16:30:51 +08:00

29 lines
429 B
Bash

#!/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
172.10.125.92 master-node
172.10.125.6 worker-1
172.10.1251.141 worker-2
172.10.125.120 storage-1
EOF
yum clean all && yum makecache
root
10.190.217.227
3Ycg4ZPsG#Z!