Linux-Centos7 xsync集群分发脚本Linux-Centos7 xsync集群分发脚本
Linux-Centos7 xsync集群分发脚本我是在/usr/bin目录下创建xsync文件sudo vim /usr/bin/xsync在该文件中编写如下代码#!/bin/bash#1. 判断参数个数if [ $# -lt 1 ]then echo Not Enough Arguement! exit;fi#2. 遍历集群所有机器for host in hadoop102 hadoop103 hadoop104do echo ====================