大量更新
This commit is contained in:
22
78-202603-重庆巫山监管/1-批量脚本.sh
Normal file
22
78-202603-重庆巫山监管/1-批量脚本.sh
Normal file
@@ -0,0 +1,22 @@
|
||||
核心服务器-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
|
||||
Reference in New Issue
Block a user