Last change
on this file since 119 was
119,
checked in by waue, 15 years ago
|
新增註解
|
-
Property svn:executable set to
*
|
File size:
748 bytes
|
Rev | Line | |
---|
[116] | 1 | #!/bin/bash |
---|
| 2 | # 語言的選擇 |
---|
[119] | 3 | # source ./language_choise.sh |
---|
[116] | 4 | # 匯入功能函數 |
---|
| 5 | source ./install_func.sh |
---|
[117] | 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 | set_install_information |
---|
| 17 | show_info |
---|
| 18 | read -p "Please confirm your install infomation: 1.Yes 2.No " confirm |
---|
| 19 | if [ $confirm -eq 1 ]; then |
---|
| 20 | |
---|
| 21 | # create_nutchuser_account |
---|
| 22 | # make_ssh_key |
---|
| 23 | |
---|
| 24 | Hadoop_install |
---|
| 25 | Nutch_install |
---|
| 26 | |
---|
| 27 | # tomcat_install |
---|
| 28 | # make_client_install |
---|
| 29 | |
---|
| 30 | format_HDFS |
---|
| 31 | start_up_NutchEZ |
---|
| 32 | set_tomcat |
---|
| 33 | start_up_tomcat |
---|
| 34 | elif [ $confirm -eq 2 ]; then |
---|
| 35 | main |
---|
| 36 | fi |
---|
| 37 | echo "Install Successfully!!" |
---|
| 38 | echo "Visit http://$MasterIP_Address:portNO" |
---|
| 39 | } |
---|
| 40 | |
---|
| 41 | main |
---|
Note: See
TracBrowser
for help on using the repository browser.