22 lines
509 B
Bash
22 lines
509 B
Bash
核心服务器-1 100 1000 192.168.2.19 36.133.236.76 storage Supercyy.1
|
|
核心服务器-2 100 1000 192.168.2.42 36.133.236.51 worker-1 Supercyy.1
|
|
核心服务器-3 100 1000 192.168.2.49 36.133.236.147 worker-2 Supercyy.1
|
|
|
|
Nginx代理 100 1000 192.168.2.168 36.133.236.241 master Supercyy.1
|
|
|
|
|
|
Supercyy.1
|
|
|
|
|
|
host_list=(
|
|
192.168.2.42
|
|
192.168.2.49
|
|
192.168.2.19
|
|
)
|
|
for server in "${host_list[@]}";do
|
|
echo "current ip is $server"
|
|
|
|
ssh root@${server} "apt install -y nfs-common"
|
|
|
|
echo ""
|
|
done |