Last change
on this file since 137 was
137,
checked in by shunfa, 14 years ago
|
修改 install, install_func.sh
|
-
Property svn:executable set to
*
|
File size:
1.1 KB
|
Line | |
---|
1 | #!/bin/bash |
---|
2 | # 語言的選擇 |
---|
3 | # source ./language_choise.sh |
---|
4 | # 匯入功能函數 |
---|
5 | source ./install_func.sh |
---|
6 | source ./client_install_func.sh |
---|
7 | ### real code ##### |
---|
8 | |
---|
9 | # 執行環境檢查 |
---|
10 | check_info () { |
---|
11 | check_root |
---|
12 | check_systemInfo |
---|
13 | check_nez_installed |
---|
14 | #check_sunJava |
---|
15 | #check_ssh |
---|
16 | #check_dialog |
---|
17 | #check_php |
---|
18 | } |
---|
19 | |
---|
20 | main () { |
---|
21 | echo "歡迎使用NutchEZ\ 此安裝程序會為您新建一個nutchuser帳號" |
---|
22 | set_install_information |
---|
23 | show_info |
---|
24 | read -p "Please confirm your install infomation: 1.Yes 2.No " confirm |
---|
25 | if [ $confirm -eq 1 ]; then |
---|
26 | # create_nutchuser_account |
---|
27 | # make_ssh_key |
---|
28 | |
---|
29 | # 解壓縮 |
---|
30 | # tar -zxvf nutchez-0.2-20100524.tar.gz |
---|
31 | # mv nutchez /opt/ |
---|
32 | Install_Nutch |
---|
33 | Install_Tomcat |
---|
34 | chown -R nutchuser:nutchuser /opt/nutchez |
---|
35 | # make_client_install |
---|
36 | |
---|
37 | # 啟動系統 |
---|
38 | format_HDFS |
---|
39 | start_up_NutchEZ |
---|
40 | start_up_tomcat |
---|
41 | |
---|
42 | # 安裝流程結束,並進入網頁管理頁面設定爬網網址...等 |
---|
43 | echo "Install Successfully!!" |
---|
44 | echo "Visit http://$MasterIP_Address:8080" |
---|
45 | elif [ $confirm -eq 2 ]; then |
---|
46 | main |
---|
47 | fi |
---|
48 | } |
---|
49 | |
---|
50 | check_info |
---|
51 | main |
---|
Note: See
TracBrowser
for help on using the repository browser.