注册 | 登录 | 归档 | 搜索 | 标签 | 评论 | 链接 | 滚动板 | 在线工具

通过ssh执行远程服务器上的命令

通过SSH执行远程服务器上的命令,很好很强大,方便多了。

PS: for i in 3 23 5 15 ; do ssh root@192.168.1.$i ps auxH|grep httpd|wc -done
#就可以列出192.168.1.3,23 ,5 ,15,四台服务器上的httpd线程数;也可以利用{1..250} 依次遍历。
原文:http://bashcurescancer.com/run_remote_commands_with_ssh.html

Address: http://www.amxku.net/Remote-Commands-with-SSH/

Tags: ssh, shell, linux

上一篇»» 赚钱的方法还真多
下一篇»» 继续出差中

相关文章

网友评论

测试没成功过
Post by kiki on 2008-07-12, 1:12 PM Quote #1
我原来做过一个东西,大约在7000多台服务器上执行命令。
http://www.icylife.net/yunshu/show.php?id=461
Post by 云舒 on 2008-07-15, 8:12 PM Quote #2
早些没发现啊。哈哈,不过我还是比较以喜欢脚本方式来实现。
Post by amxku on 2008-07-15, 8:30 PM Quote #3
要做一些认证设置~ ,不然肯定要输入密码拉~
Post by vistor on 2008-08-08, 8:56 PM Quote #4

发表评论

评论内容: