add
This commit is contained in:
25
10-生产环境-5.0.0/1-base-env-shell/0.0-dependencies.sh
Normal file
25
10-生产环境-5.0.0/1-base-env-shell/0.0-dependencies.sh
Normal file
@@ -0,0 +1,25 @@
|
||||
#!/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
|
||||
10.20.1.130 master-node
|
||||
10.20.1.133 worker-1
|
||||
10.20.1.134 worker-2
|
||||
10.20.1.132 storage-1
|
||||
EOF
|
||||
|
||||
yum clean all && yum makecache
|
||||
|
||||
|
||||
36.138.132.240
|
||||
Zyly2023**
|
||||
|
||||
|
||||
Reference in New Issue
Block a user