





{"id":1806,"date":"2011-03-25T01:49:32","date_gmt":"2011-03-25T05:49:32","guid":{"rendered":"http:\/\/www.killtest.hk\/?p=1806"},"modified":"2011-03-25T01:49:32","modified_gmt":"2011-03-25T05:49:32","slug":"clusterssh","status":"publish","type":"post","link":"https:\/\/www.killtest.hk\/index.php\/unix\/clusterssh\/","title":{"rendered":"\u7528ClusterSSH\u7ba1\u7406\u591a\u81faLinux\u670d\u52d9\u5668"},"content":{"rendered":"<p>Cluster SSH \u662f\u58f9\u500b\u53ef\u4ee5\u7528\u4f86\u901a\u904eSSH\u5354\u8b70\u540c\u6642\u7ba1\u7406\u591a\u81fa\u9060\u7a0b\u8a08\u7b97\u6a5f\u7684\u5de5\u5177\u3002\u5b83\u975e\u5e38\u9069\u5408\u7528\u4f86\u5feb\u901f\u914d\u7f6e\u58f9\u500b\u96c6\u7fa4\u4e2d\u7684\u6240\u6709\u904b\u884c\u76f8\u540c\u670d\u52d9\u548c\u5177\u5099\u76f8\u540c\u914d\u7f6e\u7684\u8a08\u7b97\u6a5f\u7bc0\u9ede\u3002\u73fe\u5728\u6709\u5927\u91cf\u7684\u958b\u6e90\u7ba1\u7406\u5de5\u5177\uff0c\u90fd\u53ef\u4ee5\u5be6\u73fe\u9019\u6a23\u7684\u7ba1\u7406\uff0c\u6bd4\u5982dsh\u3001SUSE Manager\u7b49\u3002\u4e0b\u9762\u662f\u7528ClusterSSH\u7ba1\u7406\u591a\u81faLinux\u670d\u52d9\u5668\u7684\u5177\u9ad4\u904e\u7a0b\u3002<br \/>\n\u00a0\u00a0\u00a0 \u5982\u679c\u59b3\u662f\u58f9\u540dLinux\u7cfb\u7d71\u7ba1\u7406\u54e1\uff0c\u90a3\u59b3\u6bcf\u5929\u58f9\u5b9a\u6703\u548c\u8a31\u8a31\u591a\u591a\u7684\u6a5f\u5668\u6253\u4ea4\u9053\uff0c\u56e0\u70ba\u59b3\u8981\u5b9a\u671f\u76e3\u6e2c\u548c\u7dad\u8b77\u9019\u4e9b\u6a5f\u5668\uff0c\u5982\u58f9\u6279Web\u670d\u52d9\u5668\uff0c\u5982\u679c\u59b3\u8981\u540c\u6642\u5728\u591a\u81fa\u6a5f\u5668\u4e0a\u6572\u5165\u76f8\u540c\u7684\u547d\u4ee4\uff0c\u59b3\u53ef\u80fd\u6703\u901a\u904eSSH\u767b\u9304\uff0c\u7136\u5f8c\u9010\u81fa\u6572\u5165\uff0c\u5982\u679c\u4f7f\u7528ClusterSSH\uff0c\u53ef\u4ee5\u70ba\u59b3\u7bc0\u7701\u4e0d\u5c11\u985e\u4f3c\u7684\u5de5\u4f5c\u6642\u9593\u3002<br \/>\n\u00a0\u00a0\u00a0 ClusterSSH\u662f\u7528Tk\/Perl\u5305\u88ddXTerm\u548cSSH\u5f8c\u5f62\u6210\u7684\u65b0\u5de5\u5177\uff0c\u5c31\u5176\u672c\u8eab\u800c\u8a00\uff0c\u5b83\u53ef\u4ee5\u904b\u884c\u5728\u4efb\u4f55\u517c\u5bb9POSIX\u7684\u64cd\u4f5c\u7cfb\u7d71\u4e0a\uff0c\u6211\u66fe\u7d93\u5728Linux\uff0cSolaris\u548cMac OS X\u4e0a\u904b\u884c\u904e\u5b83\uff0c\u5b83\u9700\u8981Perl\u5eabTk\uff08\u5728Debian\u6216Ubuntu\u4e0a\u5c31\u662fperl-tk\uff09\u548cX11::Protocol\uff08\u5728Debian\u6216Ubuntu\u4e0a\u5c31\u662flibx11-protocol-perl\uff09\uff0c\u6b64\u5916\uff0cxterm\u548cOpenSSH\u662f\u5fc5\u4e0d\u53ef\u5c11\u7684\u3002<br \/>\n\u00a0\u00a0\u00a0 \u5b89\u88dd<br \/>\n\u00a0\u00a0\u00a0 \u5728Debian\u6216Ubuntu\u4e0a\u5b89\u88ddClusterSSH\u662f\u76f8\u7576\u7c21\u55ae\u7684\uff0c\u53ea\u9700\u8981\u6572\u5165sudo apt-get install clusterssh\u5c31\u53ef\u4ee5\u5b89\u88dd\u597d\uff0c\u81f3\u65bc\u4f9d\u8cf4\u5305\u59b3\u4e5f\u4e0d\u5fc5\u64d4\u5fc3\uff0c\u58f9\u5207\u90fd\u6703\u70ba\u59b3\u88dd\u597d\u7684\uff0c\u5b83\u4e5f\u63d0\u4f9b\u4e86\u9069\u5408Fedora\u7684rpm\u5305\uff0c\u5728FreeBSD\u4e0a\u53ef\u901a\u904eport\u7cfb\u7d71\u5b89\u88dd\uff0c\u9084\u70baMac OS X\u6e96\u5099\u4e86MacPort\u7248\u672c\uff0c\u56e0\u6b64\u59b3\u53ef\u4ee5\u5728\u59b3\u7684\u860b\u679c\u96fb\u8166\u4e0a\u5b89\u88ddClusterSSH\uff0c\u7576\u7136\uff0c\u5982\u679c\u59b3\u662f\u6975\u5ba2\uff0c\u4e5f\u53ef\u4ee5\u4e0b\u8f09\u6e90\u4ee3\u78bc\u81ea\u5df1\u7de8\u8b6f\u3002<br \/>\n\u00a0\u00a0\u00a0 \u914d\u7f6e<br \/>\n\u00a0\u00a0\u00a0 \u53ef\u4ee5\u901a\u904eClusterSSH\u7684\u5168\u5c40\u914d\u7f6e\u6587\u4ef6\/etc\/clusters\uff0c\u6216\u7528\u6236home\u76ee\u9304\u4e0b\u7684\u3002csshrc\u6587\u4ef6\u4f86\u914d\u7f6e\u5b83\uff0c\u6211\u559c\u6b61\u7528\u6236\u7d1a\u7684\u914d\u7f6e\u65b9\u5f0f\uff0c\u9019\u6a23\u540c\u58f9\u500b\u7cfb\u7d71\u4e2d\u7684\u4e0d\u540c\u7528\u6236\u53ef\u4ee5\u6839\u64da\u81ea\u5df1\u7684\u559c\u597d\u9032\u884c\u914d\u7f6e\uff0cClusterSSH\u5b9a\u7fa9\u4e86\u58f9\u500b\u201ccluster\u201d\u6a5f\u5668\u7d44\uff0c\u59b3\u53ef\u4ee5\u901a\u904e\u58f9\u500b\u754c\u9762\u4f86\u63a7\u5236\u9019\u500b\u7d44\u4e2d\u7684\u6240\u6709\u6a5f\u5668\uff0c\u5728\u914d\u7f6e\u6587\u4ef6\u7684\u9802\u7aef\u201cclusters\u201d\u90e8\u5206\uff0c\u59b3\u53ef\u4ee5\u8a73\u76e1\u5730\u5217\u51fa\u59b3\u7684\u96c6\u7fa4\uff0c\u7136\u5f8c\u7528\u7368\u7acb\u7684\u6bb5\u843d\u4f86\u63cf\u8ff0\u6bcf\u500b\u96c6\u7fa4\u3002<br \/>\n\u00a0\u00a0\u00a0 \u4f8b\u5982\uff0c\u5047\u8a2d\u6211\u6709\u5169\u500b\u96c6\u7fa4\uff0c\u6bcf\u500b\u96c6\u7fa4\u7531\u5169\u81fa\u6a5f\u5668\u7d44\u6210\uff0c\u201cCluster1\u201d\u7531\u201cTest1\u201d\u548c\u201cTest2\u201d\u5169\u81fa\u6a5f\u5668\u7d44\u6210\uff0c\u201cCluster2\u201d\u7531\u201cTest3\u201d\u548c\u201cTest4\u201d\u5169\u81fa\u6a5f\u5668\u7d44\u6210\uff0c~.csshrc\uff08\u6216\/etc\/clusters\uff09\u914d\u7f6e\u6587\u4ef6\u7684\u5167\u5bb9\u770b\u8d77\u4f86\u61c9\u8a72\u662f\uff1a<br \/>\n\u00a0\u00a0\u00a0 clusters = cluster1 cluster2<br \/>\n\u00a0\u00a0\u00a0 cluster1 = test1 test2<br \/>\n\u00a0\u00a0\u00a0 cluster2 = test3 test4\u59b3\u4e5f\u53ef\u4ee5\u5275\u5efa\u4e2d\u9593\u96c6\u7fa4\uff08\u5305\u542b\u5176\u5b83\u96c6\u7fa4\u7684\u96c6\u7fa4\uff09\uff0c\u5982\u679c\u59b3\u60f3\u5275\u5efa\u58f9\u500b\u540d\u53eb\u201call\u201d\u7684\u96c6\u7fa4\u5305\u542b\u6240\u6709\u7684\u6a5f\u5668\uff0c\u6709\u5169\u7a2e\u5be6\u73fe\u624b\u6bb5\uff0c\u9996\u5148\uff0c\u59b3\u53ef\u4ee5\u5275\u5efa\u58f9\u500b\u5305\u542b\u6240\u6709\u6a5f\u5668\u7684\u96c6\u7fa4\uff0c\u5982\uff1a<br \/>\n\u00a0\u00a0\u00a0 clusters = cluster1 cluster2 all<br \/>\n\u00a0\u00a0\u00a0 cluster1 = test1 test2<br \/>\n\u00a0\u00a0\u00a0 cluster2 = test3 test4<br \/>\n\u00a0\u00a0\u00a0 all = test1 test2 test3 test4\u4f46\u6211\u66f4\u559c\u6b61\u7684\u65b9\u6cd5\u662f\u4f7f\u7528\u58f9\u500b\u5305\u542b\u5176\u5b83\u96c6\u7fa4\u7684\u4e2d\u9593\u96c6\u7fa4\uff1a<br \/>\n\u00a0\u00a0\u00a0 clusters = cluster1 cluster2 all<br \/>\n\u00a0\u00a0\u00a0 cluster1 = test1 test2<br \/>\n\u00a0\u00a0\u00a0 cluster2 = test3 test4<br \/>\n\u00a0\u00a0\u00a0 all = cluster1 cluster2<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Cluster SSH \u662f\u58f9\u500b\u53ef\u4ee5\u7528\u4f86\u901a\u904eSSH\u5354\u8b70\u540c\u6642\u7ba1\u7406\u591a\u81fa\u9060\u7a0b\u8a08\u7b97\u6a5f\u7684\u5de5\u5177\u3002\u5b83\u975e\u5e38\u9069\u5408\u7528\u4f86\u5feb\u901f\u914d\u7f6e\u58f9\u500b\u96c6 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[531],"tags":[295,747,751],"class_list":["post-1806","post","type-post","status-publish","format-standard","hentry","category-unix","tag-linux","tag-747","tag-clusterssh"],"_links":{"self":[{"href":"https:\/\/www.killtest.hk\/index.php\/wp-json\/wp\/v2\/posts\/1806","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.killtest.hk\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.killtest.hk\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.killtest.hk\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.killtest.hk\/index.php\/wp-json\/wp\/v2\/comments?post=1806"}],"version-history":[{"count":0,"href":"https:\/\/www.killtest.hk\/index.php\/wp-json\/wp\/v2\/posts\/1806\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.killtest.hk\/index.php\/wp-json\/wp\/v2\/media?parent=1806"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.killtest.hk\/index.php\/wp-json\/wp\/v2\/categories?post=1806"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.killtest.hk\/index.php\/wp-json\/wp\/v2\/tags?post=1806"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}