首页 文章 精选 留言 我的

精选列表

搜索[服务],共10000篇文章
优秀的个人博客,低调大师

polysh 同时处理多台服务

Polysh介绍 官方主页的介绍如下: Polysh is a tool to aggregate several remote shells into one. It is used to launch an interactive remote shell on many machines at once. It is written in Python and requires Python ≥ 2.4. 平时我们登录远程主机时,每登录一个远程主机均需要打开一个shell,然后在各个shell中与远程主机进行命令交互。Polysh的作用是允许你在一个shell中同时向多个远程主机发送命令,返回的结果在这个shell中显示。Polysh对于需要登录多个远程主机,并执行相同指令的情况,大大减少了我们的工作量。 Polysh安装 通过下载源代码的试安装,步骤如下: wget wget http://guichaz.free.fr/polysh/files/polysh-0.4.tar.gz tar -zxvf polysh-0.4.tar.gz cd polysh-0.4 su python setup.py install Xshell配置Xagent 打开文件-属性,选择SSH选项,选择”使用密码处理的Xagent(SSH代理)”。然后将Xshell重启。 Polysh使用 polysh 106.2.52.163 106.2.52.161 可以看到以下提示,说明同时登录上了两个远程主机 ready (2)> 执行命令 ready (2)> pwd 显示 106.2.52.163 : /home/lihao 106.2.52.161 : /home/lihao 说明pwd命令已经同时发往106.2.52.163,106.2.52.161,并得到其返回的结果。 Polysh指令 以冒号开头的指令不会发送到远程主机,polysh会执行以冒号开头的指令,例如 ready (2)> :help :add Add one or many remote shells. :chdir Change the current directory of polysh (not the remote shells). :disable Disable sending commands to remote shells. :enable Enable sending commands to remote shells. :export_vars Export some environment variables on enabled remote shells. :help List control commands or show their documentations. :hide_password Do not echo the next typed line. :list List remote shells and their states. :purge Delete disabled remote shells. :quit Quit polysh. :reconnect Try to reconnect to disconnected remote shells. :rename Rename all enabled remote shells with the argument. :replicate Copy a path from one remote shell to all others :reset_prompt Change the prompt to be recognized by polysh. :send_ctrl Send a control character to remote shells. :set_debug Enable or disable debugging output for remote shells. :set_log Duplicate every console I/O into the given local file. :show_read_buffer Print the data read by remote shells. :upload Upload the specified local path to enabled remote shells. 具体指令可以参考上述的说明。 Polysh源码 可以通过git获取polysh的源码 git clone git://repo.or.cz/polysh.git 参考资料 Polysh官方文档, http://guichaz.free.fr/polysh/ 运维工具-Polysh 入门, http://segmentfault.com/a/1190000000492374 --------------------- 本文来自 haozlee 的CSDN 博客 ,全文地址请点击:https://blog.csdn.net/lihao21/article/details/48319085?utm_source=copy

优秀的个人博客,低调大师

【功能发布】日志服务Logtail 2018-08

新功能 插件输入新增syslog,支持rfc5424和rfc3164两种协议。 插件数据处理新增processor_filter_key_regex,支持根据日志字段过滤日志。 功能优化 Logtail支持手动更新命令(upgrade),升级期间数据不丢失。 lumberjack插件支持SSL。 容器数据采集支持_container_ip_。 优化容器数据采集中的_image_name_,将hash值改为可读的tag值。 问题修复 容器stdout采集默认去除日志尾的'\n',改善可读性。 优化容器数据采集策略,增加对Job型容器(启动后3秒内退出)的日志采集。

资源下载

更多资源
Mario

Mario

马里奥是站在游戏界顶峰的超人气多面角色。马里奥靠吃蘑菇成长,特征是大鼻子、头戴帽子、身穿背带裤,还留着胡子。与他的双胞胎兄弟路易基一起,长年担任任天堂的招牌角色。

Spring

Spring

Spring框架(Spring Framework)是由Rod Johnson于2002年提出的开源Java企业级应用框架,旨在通过使用JavaBean替代传统EJB实现方式降低企业级编程开发的复杂性。该框架基于简单性、可测试性和松耦合性设计理念,提供核心容器、应用上下文、数据访问集成等模块,支持整合Hibernate、Struts等第三方框架,其适用范围不仅限于服务器端开发,绝大多数Java应用均可从中受益。

Rocky Linux

Rocky Linux

Rocky Linux(中文名:洛基)是由Gregory Kurtzer于2020年12月发起的企业级Linux发行版,作为CentOS稳定版停止维护后与RHEL(Red Hat Enterprise Linux)完全兼容的开源替代方案,由社区拥有并管理,支持x86_64、aarch64等架构。其通过重新编译RHEL源代码提供长期稳定性,采用模块化包装和SELinux安全架构,默认包含GNOME桌面环境及XFS文件系统,支持十年生命周期更新。

Sublime Text

Sublime Text

Sublime Text具有漂亮的用户界面和强大的功能,例如代码缩略图,Python的插件,代码段等。还可自定义键绑定,菜单和工具栏。Sublime Text 的主要功能包括:拼写检查,书签,完整的 Python API , Goto 功能,即时项目切换,多选择,多窗口等等。Sublime Text 是一个跨平台的编辑器,同时支持Windows、Linux、Mac OS X等操作系统。

用户登录
用户注册