我試圖弄清楚如何向整個叢集發出相同的命令。我正在使用並行 ssh,但我似乎無法讓它正常工作。當我嘗試命令時,我得到:
[1] 22:58:24 [FAILURE] [email protected] Exited with error code 255
[2] 22:58:24 [FAILURE] [email protected] Exited with error code 1
[3] 22:58:24 [FAILURE] [email protected] Exited with error code 1
我查找了錯誤代碼,但我無法理解發生了什麼。
答案1
解決方案是忘記並行 ssh 並使用 cssh 代替: http://www.unixmen.com/how-to-manage-multiple-ssh-sessions-using-cluster-ssh-and-pac-manager/