#!/bin/bash for i in jack@hadoop102 jack@hadoop103 jack@hadoop104do echo "===================== $i =============================" ssh $i '/opt/module/jdk1.8.0_144/bin/jps'done 来源:https://www.cnblogs.com/jungle123/p/11392022.html 标签 jps