集群运维命令pdsh

pdsh是一款用于集群运维的工具,能够方便地在多台主机上批量执行命令。同时,它提供的pdcp命令可以实现文件从本地到远程主机的批量复制。安装后,参照相关使用说明,可以提升集群管理效率。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

作用

  批量地在集群机器上执行命令,类似于pgm命令。另外,pdsh还附带了pdcp命令,此命令可以将本地文件批量复制到远程的多台主机上;

安装

yum install pdsh

用法

Usage: pdsh [-options] command ...
-S                return largest of remote command return values
-h                output usage menu and quit
-V                output version information and quit
-q                list the option settings and quit
-b                disable ^C status feature (batch mode)
-d                enable extra debug information from ^C status
-l user           execute remote commands as user
-t seconds        set connect timeout (default is 10 sec)
-u seconds        set command timeout (no default)
-f n              use fanout of n nodes  //同时连接到远程机器的个数
-w host,host,...  set target node list on command line   //执行命令的机器列表
-x host,host,...  set node exclusion list on command line  //黑名单,排除掉的机器列表
-R name           set rcmd module to name  //指定使用的协议,如ss
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值