(并行SSH)高性能Linux服务器构建实战:系统安全、故障排查、自动化运维、集群架构...

1、pssh
pssh
pscp 传文件到远程服务器
prsync
pnuke 并行killall
pslurp 从远程服务器复制文件下来
-h file user01@ip:port
-H ip
-l username
-p -o -e -t timeout
//使用
pssh -i -O "StrictHostKeyChecking=no" -h /etc/pssh/hosts "uptime" -o out.txt
//test为本地目录,远程目录gmond,复制过来改名gmond1
pslurp -h file -r -L /home/test /home/gmond gmond1
//tmp为远程
pscp -h file -r /etc/conf /tmp
//
prsync -h file -l username -az -r /etc /tmp
//关闭
pnuke -h /etc/file httpd


2、pdsh
pdsh -R ssh -w user01
3、polysh 交互ssh

猜你喜欢

转载自blog.csdn.net/weixin_34273479/article/details/87458040