pssh批量ssh操作
2016-01-23 19:33
253 查看
pssh批量ssh操作
# wget http://files.opstool.com/files/pssh-2.3.tar.gz
# tar zxfv pssh-2.3.tar.gz
# cd pssh-2.3
# python setup.py install
使用:
# pssh -A -h server.txt 'shutdown' (如果设置了免密码登录就不用-A)
# pssh -A -h server.txt 'service httpd stop;service mysql stop' (多个命令中间用“;”隔开)
server.txt里写多个服务器名即可
pscp批量分发文件:
# pscp -h server.txt /root/sh/aa /root/
从一堆服务器中拷贝文件到中心服务器:
# pslurp -h server.txt /etc/hosts /root/
# wget http://files.opstool.com/files/pssh-2.3.tar.gz
# tar zxfv pssh-2.3.tar.gz
# cd pssh-2.3
# python setup.py install
使用:
# pssh -A -h server.txt 'shutdown' (如果设置了免密码登录就不用-A)
# pssh -A -h server.txt 'service httpd stop;service mysql stop' (多个命令中间用“;”隔开)
server.txt里写多个服务器名即可
pscp批量分发文件:
# pscp -h server.txt /root/sh/aa /root/
从一堆服务器中拷贝文件到中心服务器:
# pslurp -h server.txt /etc/hosts /root/
相关文章推荐
- 自动化部署工具pssh入门教程
- 通过pssh批量管理Linux服务器
- Linux批量部署无密钥脚本
- linux集群分布式SSH并行管理工具
- 批量管理工具 pssh
- CentOS 6.5 Corosync+Pacemaker crm实现DRBD高可用过程及DRBD详解
- 测试批量管理推送linux命令工具mussh和pssh
- pssh并行执行远程操作
- pssh 自动化运维
- Linux下批量管理工具PSSH
- 小工具之pssh批量管理
- 批量执行工具PSSH详解
- 运维自动化轻量级工具pssh
- pssh安装和使用
- pssh
- PSSH使用
- 企业实战脚本案例3:批量管理自动化运维100台小规模服务器
- 一次批量添加crontab定期删除半月前日志记录
- 安装PSSH工具
- 批量操作-pssh