source: nutchez-0.2/src/test/install @ 136

Last change on this file since 136 was 136, checked in by shunfa, 15 years ago

install流程修改

  • Property svn:executable set to *
File size: 970 bytes
Line 
1#!/bin/bash
2# 語言的選擇
3# source ./language_choise.sh
4# 匯入功能函數
5source ./install_func.sh
6source ./client_install_func.sh
7### real code #####
8main () {
9  check_root
10  check_systemInfo
11  check_nez_installed
12  #check_sunJava
13  #check_ssh
14  #check_dialog
15  #check_php
16
17  #set install mode
18  set_install_information
19  show_info
20  read -p "Please confirm your install infomation: 1.Yes 2.No  " confirm
21  if [ $confirm -eq 1 ]; then
22
23    # create_nutchuser_account
24    # make_ssh_key
25 
26    # 解壓縮
27    # tar -zxvf nutchez-0.2-20100524.tar.gz
28    # mv -r nutchez /opt/
29    Install_Nutch
30    Install_Tomcat
31    # chown -R nutchuser:nutchuser /opt/nutchez
32    # make_client_install
33
34    format_HDFS
35    start_up_NutchEZ
36    start_up_tomcat
37
38    # 安裝流程結束,並進入網頁管理頁面設定爬網網址...等 
39    echo "Install Successfully!!"
40    echo "Visit http://$MasterIP_Address:8080"
41  elif [ $confirm -eq 2 ]; then
42    main
43  fi
44}
45
46main
Note: See TracBrowser for help on using the repository browser.