#!/bin/bash echo "start zk......" for i in 1 2 3 do ssh biggod0$i "source /etc/profile;/root/apps/zookeeper-3.4.5/bin/zkServer.sh start" done