跳至内容
  • alpine常用命令
  • Docker常用命令
  • Go常用命令
  • Hermes-agent常用命令
  • k8s常用命令
  • linux常用命令
  • mysql常用命令
  • Openclaw常用命令
  • postgresql常用命令
  • python常用命令
  • redis常用命令
  • shell脚本常用命令
  • Ubuntu常用命令
  • windows常用命令
  • 知识图谱
运维Devops
  • 服务器
    • windows
    • Linux
    • Vmware
    • 常见问题处理
    • Java
  • 自动化运维
    • Python
    • Shell编程
    • shell脚本
    • 夜莺监控
    • Ansible
    • Dart
  • 容器相关
    • Docker
    • Kubernetes
    • Golang
    • prometheus
    • VUE
    • K3S
  • 数据库
    • Oracle
    • MySQL
    • mongodb
    • Redis
    • postgresql
  • 网络
  • 常用命令
    • 知识图谱
    • linux常用命令
    • shell脚本常用命令
    • Docker常用命令
    • python常用命令
    • mysql常用命令
    • k8s常用命令
    • Go常用命令
    • Ubuntu常用命令
    • Hermes-agent常用命令
    • alpine常用命令
    • redis常用命令
    • windows常用命令
    • postgresql常用命令
    • Openclaw常用命令
运维Devops

linux执行远程机器脚本

  • guanguan
  • 2021年7月14日
  • shell脚本, 自动化运维
#!/bin/bash
for i in $(awk '{prinit $0}' ip.txt)
do
    #scp a.sh oracle@$i:/tmp       #将脚本发送到远程机器
    ssh -t oracle@$i "/tmp/oracle.sh"   #在远程机器上执行脚本
     sleep 2
done
上一篇:文章 夜莺监控插件(v3)
下一篇:文章 yum源以及常见问题

相关文章

根据端口获取对应的Docker容器名字

  • 2024年9月29日

Python虚拟环境

  • 2023年10月31日

Python修饰符

  • 2023年10月27日

© 2026 运维Devops。保留所有权利。