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

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

modify install, install_func

  • Property svn:executable set to *
File size: 840 bytes
RevLine 
[116]1#!/bin/bash
2# 語言的選擇
[119]3# source ./language_choise.sh
[116]4# 匯入功能函數
5source ./install_func.sh
[117]6
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
[125]16
17  #set install mode
[117]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
[125]26    Install_Nutch
27    Install_Tomcat
28   
[117]29    # make_client_install
30   
31    format_HDFS
32    start_up_NutchEZ
[130]33    Install_Tomcat
[117]34    start_up_tomcat
[125]35
36    # 安裝流程結束,並進入網頁管理頁面設定爬網網址...等 
37    echo "Install Successfully!!"
[130]38    echo "Visit http://$MasterIP_Address:8080"
[117]39  elif [ $confirm -eq 2 ]; then
40    main
41  fi
42}
43
44main
Note: See TracBrowser for help on using the repository browser.