add
This commit is contained in:
28
7-珠海-4.1.6/1-base-env-shell/0.0-dependencies.sh
Normal file
28
7-珠海-4.1.6/1-base-env-shell/0.0-dependencies.sh
Normal file
@@ -0,0 +1,28 @@
|
||||
#!/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.2 storage-1
|
||||
EOF
|
||||
|
||||
yum clean all && yum makecache
|
||||
|
||||
|
||||
1!p@ssword
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user