Last change
on this file since 134 was
131,
checked in by shunfa, 14 years ago
|
modify install, install_func.sh
|
-
Property svn:executable set to
*
|
File size:
815 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 |
---|
[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 | |
---|
[131] | 26 | Install_Nutch |
---|
[117] | 27 | # make_client_install |
---|
| 28 | format_HDFS |
---|
| 29 | start_up_NutchEZ |
---|
[130] | 30 | Install_Tomcat |
---|
[117] | 31 | start_up_tomcat |
---|
[125] | 32 | |
---|
| 33 | # 安裝流程結束,並進入網頁管理頁面設定爬網網址...等 |
---|
| 34 | echo "Install Successfully!!" |
---|
[130] | 35 | echo "Visit http://$MasterIP_Address:8080" |
---|
[117] | 36 | elif [ $confirm -eq 2 ]; then |
---|
| 37 | main |
---|
| 38 | fi |
---|
| 39 | } |
---|
| 40 | |
---|
| 41 | main |
---|
Note: See
TracBrowser
for help on using the repository browser.