Giter Site home page Giter Site logo

gomanyssh's Introduction

gomanyssh

go运维平台,支持一万台主机同时并发执行脚本

使用方法

1.下载gomanyssh到任意目录

2.在gomanyssh同一目录创建一个ip.txt文件,格式有3种,例子以下

  192.168.1.1  22  root  123456   
  192.168.1.2  22  root  key
  192.168.1.2  22  root  key      abcdef


  ip   端口   用户名   密码   
  ip   端口   用户名   key(证书固定写成key)   证书无密码这个字段不用填
  ip   端口   用户名   key(证书固定写成key)   证书密码

  
  注意点:如果使用证书,请把证书的名字改为id_rsa,并放到和gomanyssh同一目录

3.执行命令,-c 后面写需要执行的命令即可

  ./gomanyssh -c date

4.如果想先传输脚本到远程主机再执行,步骤以下

  ./gomanyssh -s 1.sh -d /tmp

5.再执行远程主机脚本

  ./gomanyssh -c /tmp/1.sh

其它没有了,万台主机同时并发执行任务,可以用ulimit -n 102400把打开文件数设置大一点即可。

有任何意见,BUG,想法,欢迎大家一起交流.

gomanyssh's People

Contributors

xx007 avatar phpcode007 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.