forked from birdLark/LarkMidTable
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
wxgzgl
committed
Sep 9, 2020
1 parent
26780dc
commit 080b873
Showing
3 changed files
with
40 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# 1.启动脚本: | ||
|
||
``` | ||
#!/bin/bash | ||
for host in mini4 mini5 mini6 | ||
do | ||
ssh $host "source /etc/profile;/home/hadoop/data/zookeeper-3.4.5/bin/zkServer.sh start" | ||
echo "$host zk is running" | ||
done | ||
``` | ||
|
||
# 2.停止脚本: | ||
|
||
``` | ||
#!/bin/bash | ||
for host in mini4 mini5 mini6 | ||
do | ||
ssh $host "source /etc/profile;/home/hadoop/data/zookeeper-3.4.5/bin/zkServer.sh stop" | ||
echo "$host zk is stopping" | ||
done | ||
``` | ||
|
||
# 3.查看状态脚本: | ||
|
||
``` | ||
#!/bin/bash | ||
for host in mini4 mini5 mini6 | ||
do | ||
ssh $host "source /etc/profile;/home/hadoop/data/zookeeper-3.4.5/bin/zkServer.sh status" | ||
echo "$host zk is stopping" | ||
done | ||
``` | ||
|
||
|
||
|
||
可以添加首页QQ群获取脚本。 |
Binary file not shown.