30 lines
481 B
Bash
30 lines
481 B
Bash
#!/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
|
|
172.32.12.34 master-node
|
|
172.32.12.35 worker-1
|
|
172.32.12.36 worker-2
|
|
172.32.12.37 worker-3
|
|
172.32.12.38 storage-1
|
|
EOF
|
|
|
|
|
|
bash <(curl -L -s https://cdn.jsdelivr.net/gh/teddysun/across/bbr.sh)
|
|
|
|
32.128.6.68
|
|
|
|
32.128.6.68:8033
|
|
|
|
|