#!/bin/bash for host in node6 node7 node8 do echo "$host is starting ...." ssh $host "/zookeeper-3.4.5/bin/zkServer.sh start" done
本文出自 “素颜” 博客,请务必保留此出处http://suyanzhu.blog.51cto.com/8050189/1953946
原文地址:http://suyanzhu.blog.51cto.com/8050189/1953946