大数据 zookeeper,一键批量启动脚本 zookeeper,一键批量启动脚本 #!/bin/sh for host in node1 node2 node3 do ssh $host "source /etc/profit; nohup zkServer.sh start >/dev/null 2>&1 &" echo "$host zk is running..." done