centos安装pssh

1、使用CentOS yum源(安装的是最新版的,我安装的是2.7.5)
yum install python*

2、下载pass的压缩包

网站是http://www.theether.org/pssh/

下载地址是http://www.theether.org/pssh/pssh-1.4.3.tar.gz

[root@szlnmp01 tmp]# tar -zxvf pssh-1.4.3.tar.gz

[root@szlnmp01 pssh-1.4.3]# python setup.py install

 

成功后执行pssh和pscp会提示

[root@szlnmp01 pssh-1.4.3]# pssh
Usage: pssh [OPTIONS] -h hosts.txt prog [arg0] ..


  -h --hosts   hosts file (each line "host[:port] [user]")
  -l --user    username (OPTIONAL)
  -p --par     max number of parallel threads (OPTIONAL)
  -o --outdir  output directory for stdout files (OPTIONAL)
  -e --errdir  output directory for stderr files (OPTIONAL)
  -t --timeout timeout (secs) (-1 = no timeout) per host (OPTIONAL)
  -O --options SSH options (OPTIONAL)
  -v --verbose turn on warning and diagnostic messages (OPTIONAL)
  -P --print   print output as we get it (OPTIONAL)
  -i --inline  inline aggregated output for each server (OPTIONAL)


Example: pssh -h nodes.txt -l irb2 -o /tmp/foo uptime

[root@szlnmp01 ~]# pscp
Usage: pscp [OPTIONS] -h hosts.txt local remote


  -r --recursive recusively copy directories (OPTIONAL)
  -h --hosts     hosts file (each line "host[:port] [login]")
  -l --user      username (OPTIONAL)
  -p --par       max number of parallel threads (OPTIONAL)
  -o --outdir    output directory for stdout files (OPTIONAL)
  -e --errdir    output directory for stderr files (OPTIONAL)
  -t --timeout   timeout (secs) (-1 = no timeout) per host (OPTIONAL)
  -v --verbose   turn on warning and diagnostic messages (OPTIONAL)
  -O --options   SSH options (OPTIONAL)
Example: pscp -h hosts.txt -l irb2 foo.txt /home/irb2/foo.txt

 

http://cukdd.blog.chinaunix.net/uid-29712753-id-4482435.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值