[atguigu@hadoop102 bin]$ vim xcall.sh
#! /bin/bash

for i in hadoop102 hadoop103 hadoop104
do
        echo --------- $i ----------
        ssh $i "$*"
done

 

 

chmod 777 xcall.sh

 

xcall.sh jps

 

相关文章:

  • 2021-09-20
  • 2022-12-23
  • 2021-03-31
  • 2022-12-23
  • 2021-07-30
  • 2021-06-12
  • 2021-10-26
猜你喜欢
  • 2021-07-21
  • 2021-11-30
  • 2021-12-17
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-23
相关资源
相似解决方案