#!/bin/bash
for((host=191; host<194; host++));
do
echo --------------------- hadoop$host ----------------
ssh hadoop$host /opt/module/jdk1.8.0_144/bin/jps
done
查看多台机器的jps
最新推荐文章于 2021-09-20 10:53:12 发布
#!/bin/bash
for((host=191; host<194; host++));
do
echo --------------------- hadoop$host ----------------
ssh hadoop$host /opt/module/jdk1.8.0_144/bin/jps
done