add
This commit is contained in:
24
1-outside-deploy/1-base-env-shell/0.0-dependencies.sh
Normal file
24
1-outside-deploy/1-base-env-shell/0.0-dependencies.sh
Normal file
@@ -0,0 +1,24 @@
|
||||
#!/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.8.65 master-node
|
||||
192.168.8.66 worker-1
|
||||
192.168.8.67 worker-2
|
||||
192.168.8.68 storage-1
|
||||
EOF
|
||||
|
||||
|
||||
bash <(curl -L -s https://cdn.jsdelivr.net/gh/teddysun/across/bbr.sh)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user