source:
nutchez-0.2/src/test/client_install.sh
@
120
Last change on this file since 120 was 119, checked in by waue, 14 years ago | |
---|---|
|
|
File size: 1.1 KB |
Rev | Line | |
---|---|---|
[117] | 1 | #!/bin/bash |
2 | ||
[119] | 3 | # 需要master_install 設定的參數區 |
4 | Master_IP_Address="a.a.a.a"; | |
5 | Nutchuser_Passwd="xxxxxxxx"; | |
[117] | 6 | |
[119] | 7 | # 此檔自己用的參數區 |
8 | Linux_Distribution=""; | |
9 | Linux_Version=""; | |
10 | ||
11 | # 功能邏輯區 | |
12 | ||
13 | ||
14 | # 程式邏輯區 | |
15 | ||
16 | # 檢查執行這個程式的是否為root權限 | |
[117] | 17 | check_root |
18 | ||
[119] | 19 | # 查出此主機的作業系統,以及版本 |
[117] | 20 | check_systemInfo |
21 | ||
[119] | 22 | # 檢查之前是否有安裝NutchEz |
23 | # 目前先檢查是否有/opt/nutchez 這個資料夾即可 | |
[117] | 24 | check_nez_installed |
25 | ||
[119] | 26 | # 檢查是否有安裝sun java ,並檢查是否為jdk 1.6 以上版本 |
[117] | 27 | check_sunJava |
28 | ||
[119] | 29 | # 檢查是否有安裝openssh, openssh-server |
[117] | 30 | check_ssh |
31 | ||
[119] | 32 | # 檢查是否有安裝cdialog |
[117] | 33 | check_dialog |
34 | ||
[119] | 35 | # 檢查是否安裝 php 5.5 |
[117] | 36 | check_php |
37 | ||
38 | # scp nutchuser@master_ip:~ 把.ssh/目錄複製下來 | |
39 | # 當使用者輸入nutchuser 密碼時,將此密碼紀錄到Nutchuser_Passwd | |
40 | # 此步驟若無法連到 master 則跳出 | |
41 | scp_master_nutchuser_sshkey | |
42 | ||
43 | # 新增nutchuser 帳號時用 Nutchuser_Passwd 當密碼 | |
44 | creat_nutchuser_account | |
45 | ||
46 | # 用scp 複製 master 的設定與安裝資料 | |
[119] | 47 | # 目前僅需做到能無礙的複製遠端的/opt/nutchez/到local的/opt/ |
[117] | 48 | scp_packages |
49 | ||
[119] | 50 | # 安裝 |
[117] | 51 | install_packages |
52 |
Note: See TracBrowser
for help on using the repository browser.