Last change
on this file since 126 was
125,
checked in by shunfa, 14 years ago
|
shunfa ci install.sh and install_func.sh
|
-
Property svn:executable set to
*
|
File size:
842 bytes
|
Line | |
---|
1 | #!/bin/bash |
---|
2 | # 語言的選擇 |
---|
3 | # source ./language_choise.sh |
---|
4 | # 匯入功能函數 |
---|
5 | source ./install_func.sh |
---|
6 | |
---|
7 | ### real code ##### |
---|
8 | main () { |
---|
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 | Install_Nutch |
---|
27 | Install_Tomcat |
---|
28 | |
---|
29 | # make_client_install |
---|
30 | |
---|
31 | format_HDFS |
---|
32 | start_up_NutchEZ |
---|
33 | install_tomcat |
---|
34 | start_up_tomcat |
---|
35 | |
---|
36 | # 安裝流程結束,並進入網頁管理頁面設定爬網網址...等 |
---|
37 | echo "Install Successfully!!" |
---|
38 | echo "Visit http://$MasterIP_Address:portNO" |
---|
39 | elif [ $confirm -eq 2 ]; then |
---|
40 | main |
---|
41 | fi |
---|
42 | } |
---|
43 | |
---|
44 | main |
---|
Note: See
TracBrowser
for help on using the repository browser.