source: nutchez-0.2/src/test/client_install.sh @ 119

Last change on this file since 119 was 119, checked in by waue, 14 years ago

新增註解

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