Last change
on this file since 117 was
117,
checked in by waue, 15 years ago
|
add some value
|
-
Property svn:executable set to
*
|
File size:
824 bytes
|
Rev | Line | |
---|
[116] | 1 | #!/bin/bash |
---|
| 2 | # 語言的選擇 |
---|
| 3 | source ./language_choise.sh |
---|
| 4 | # 匯入功能函數 |
---|
| 5 | source ./install_func.sh |
---|
[117] | 6 | ### test for languege choise ### |
---|
[116] | 7 | mainFunction |
---|
| 8 | braBraBra |
---|
[117] | 9 | ### test code end ### |
---|
| 10 | |
---|
| 11 | ### real code ##### |
---|
| 12 | main () { |
---|
| 13 | # check_root |
---|
| 14 | # check_systemInfo |
---|
| 15 | # check_nez_installed |
---|
| 16 | # check_sunJava |
---|
| 17 | # check_ssh |
---|
| 18 | # check_dialog |
---|
| 19 | # check_php |
---|
| 20 | set_install_information |
---|
| 21 | show_info |
---|
| 22 | read -p "Please confirm your install infomation: 1.Yes 2.No " confirm |
---|
| 23 | if [ $confirm -eq 1 ]; then |
---|
| 24 | |
---|
| 25 | # create_nutchuser_account |
---|
| 26 | # make_ssh_key |
---|
| 27 | |
---|
| 28 | Hadoop_install |
---|
| 29 | Nutch_install |
---|
| 30 | |
---|
| 31 | # tomcat_install |
---|
| 32 | # make_client_install |
---|
| 33 | |
---|
| 34 | format_HDFS |
---|
| 35 | start_up_NutchEZ |
---|
| 36 | set_tomcat |
---|
| 37 | start_up_tomcat |
---|
| 38 | elif [ $confirm -eq 2 ]; then |
---|
| 39 | main |
---|
| 40 | fi |
---|
| 41 | echo "Install Successfully!!" |
---|
| 42 | echo "Visit http://$MasterIP_Address:portNO" |
---|
| 43 | } |
---|
| 44 | |
---|
| 45 | main |
---|
Note: See
TracBrowser
for help on using the repository browser.