在root里创建一个文件夹bin,在bin里面创建一个文件xsync,将下面的代码写在里面 使用xsync命令同步集群文件 1.xsync /etc/profile.d 2.xsync /opt 3.xsync /root/bin/