Changeset 191
- Timestamp:
- Jun 15, 2010, 1:25:19 PM (15 years ago)
- Location:
- nutchez-0.2/src/test
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
nutchez-0.2/src/test/client_install
r188 r191 53 53 # 檢查執行這個程式的是否為root權限 54 54 check_root 55 read 55 read -p "continue.." 56 56 57 57 # 查出此主機的作業系統,以及版本 58 58 check_systemInfo 59 read 59 read -p "continue.." 60 60 61 61 # 安裝需要的套件 (目前只支援 deb 套件的系統自動安裝,yum或其他套件系統的則必須手動安裝) 62 62 # 需要套件名稱 ssh, expect, dialog 63 63 install_packages 64 read 64 read -p "continue.." 65 65 66 66 # 檢查之前是否有安裝NutchEz 67 67 # 目前先檢查是否有/opt/nutchez 這個資料夾即可 68 68 check_nez_installed 69 read 69 read -p "continue.." 70 70 71 71 # 檢查是否有安裝sun java ,並檢查是否為jdk 1.6 以上版本 72 72 check_sunJava 73 read 73 read -p "continue.." 74 74 75 75 # 檢查是否有安裝openssh, openssh-server 76 76 check_ssh 77 read 77 read -p "continue.." 78 78 79 79 # 檢查是否有安裝dialog 80 80 check_dialog 81 read 81 read -p "continue.." 82 82 83 83 # 新增nutchuser 帳號時用 Nutchuser_Passwd 當密碼 84 84 creat_nutchuser_account 85 read 85 read -p "continue.." 86 86 87 87 # scp nutchuser@master_ip:~ 把.ssh/目錄複製下來 … … 89 89 # 此步驟若無法連到 master 則跳出 90 90 scp_master_nutchuser_sshkey $Master_IP_Address 91 read 91 read -p "continue.." 92 92 93 93 # 用scp 複製 master 的設定與安裝資料 94 94 # 目前僅需做到能無礙的複製遠端的/opt/nutchez/到local的/opt/ 95 95 scp_packages $Master_IP_Address 96 read 96 read -p "continue.." 97 97 98 98 # 安裝及啟動 99 99 install_nutch_package 100 read 100 read -p "continue.." 101 101 102 102 # 回覆 Hostname 和 IP 給 Master Server 103 103 recall_hostname_ip $Master_IP_Address 104 read -p "continue.." -
nutchez-0.2/src/test/client_install_func.sh
r189 r191 29 29 . lang_en_US_client_install 30 30 # if locale is zh then source chinese 31 echo $lang | grep 'zh' && source lang_zh_TW_nutchez31 echo $lang | grep 'zh' >> /dev/null && source lang_zh_TW_client_install 32 32 33 33 # Ask language
Note: See TracChangeset
for help on using the changeset viewer.