Shell Script 大量同時安裝 rpm 的方法? - Linux
By Kama
at 2013-04-30T11:53
at 2013-04-30T11:53
Table of Contents
目前機房約有六百台機器需同時安裝數個rpm檔
機器間已建立SSH Key 可免密碼登入
撰寫Shell script 如下
for i in `cat install_list.txt` // 將要安裝的六百台機器IP寫在此txt檔中
do
echo ======== $i ========
scp -v *.rpm $i:/tmp
ssh $i rpm -ivh /tmp/package1.rpm
ssh $i rpm -ivh /tmp/package2.rpm // 此二rpm 安裝時間約三分鐘
done
我的問題點:此方法可「依序」安裝六百台主機,有無可同時安裝的方法?
PS.「依序」安裝: 會花 600 台 X 3 分鐘 需費時 1800分鐘
「同時」安裝: 只需花 3 分鐘
--
Tags:
Linux
All Comments
By Belly
at 2013-05-04T23:21
at 2013-05-04T23:21
By Leila
at 2013-05-05T04:47
at 2013-05-05T04:47
By Olga
at 2013-05-08T03:28
at 2013-05-08T03:28
By Franklin
at 2013-05-12T07:00
at 2013-05-12T07:00
By Ida
at 2013-05-16T16:13
at 2013-05-16T16:13
By Michael
at 2013-05-18T03:04
at 2013-05-18T03:04
By Anthony
at 2013-05-21T15:06
at 2013-05-21T15:06
By Elma
at 2013-05-24T14:48
at 2013-05-24T14:48
Related Posts
Linux 3.9核心正式版發佈
By Quintina
at 2013-04-29T10:51
at 2013-04-29T10:51
請問mint(LMDE)怎麼更新thunderbird?
By Anthony
at 2013-04-29T09:32
at 2013-04-29T09:32
OpenShot 宣布從 GTK 轉向使用 Qt
By Elma
at 2013-04-28T20:32
at 2013-04-28T20:32
請問一下big5 轉碼上bbs
By Una
at 2013-04-28T15:55
at 2013-04-28T15:55
雙系統製作
By Brianna
at 2013-04-27T16:08
at 2013-04-27T16:08