Changeset 144
- Timestamp:
- Jun 2, 2010, 1:39:45 PM (15 years ago)
- Location:
- nutchez-0.2/src/test
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
nutchez-0.2/src/test/client_install
r142 r144 14 14 # 需要 master_install 設定的參數區 15 15 # Master IP here 16 Master_IP_Address=" a.a.a.a";16 Master_IP_Address="192.168.56.101"; 17 17 18 18 # 此檔自己用的參數區 … … 87 87 88 88 # 安裝 89 #install_packages 89 install_nutch_package 90 90 -
nutchez-0.2/src/test/client_install_func.sh
r143 r144 215 215 chmod 777 /opt 216 216 mkdir /opt/nutchez 217 mkdir /var/nutchez 217 218 #su nutchuser -c "scp -r -o StrictHostKeyChecking=no nutchuser@$1:/opt/nutchez /opt/" 218 echo "scp -r nutchuser@$1:/opt/nutchez/NutchezForClientOf_$Master_IP_Address.tar.gz /opt/nutchez/" 219 su nutchuser -c "scp -r nutchuser@$1:/opt/nutchez/NutchezForClientOf_$Master_IP_Address.tar.gz /opt/nutchez/ 219 echo "scp -r nutchuser@$1:/home/nutchuser/nutchez/NutchezForClientOf_$Master_IP_Address.tar.gz /opt/nutchez/" 220 chown -R nutchuser:nutchuser /opt/nutchez 221 chown -R nutchuser:nutchuser /var/nutchez 222 su nutchuser -c "scp -r nutchuser@$1:/home/nutchuser/nutchez/NutchezForClientOf_$Master_IP_Address.tar.gz /opt/nutchez/" 220 223 221 224 echo -e "\nchown -R nutchuser:nutchuser /opt/nutchez" 222 chown -R nutchuser:nutchuser /opt/nutchez223 225 chmod 755 /opt 224 226 } 227 228 229 function install_nutch_package () { 230 tar -zxvf /opt/nutchez/NutchezForClientOf_$Master_IP_Address.tar.gz -C / 231 /opt/nutchez/nutch/bin/hadoop-daemon.sh start datanode 232 /opt/nutchez/nutch/bin/hadoop-daemon.sh start tasktracker 233 } -
nutchez-0.2/src/test/install
r140 r144 29 29 tar -zxvf nutchez-0.2-0531.tar.gz -C /opt/ 30 30 Install_Nutch 31 31 mkdir /var/nutchez 32 32 chown -R nutchuser:nutchuser /opt/nutchez 33 33 chown -R nutchuser:nutchuser /var/nutchez … … 36 36 su nutchuser -c "touch /home/nutchuser/nutchez/urls/urls.txt" 37 37 su nutchuser -c "mkdir /home/nutchuser/nutchez/search" 38 #make_client_install38 make_client_install 39 39 40 40 # 啟動系統 … … 45 45 echo "Install Successfully!!" 46 46 echo "Visit http://$MasterIP_Address:8080" 47 client_install_command 47 48 elif [ $confirm -eq 2 ]; then 48 49 main -
nutchez-0.2/src/test/install_func.sh
r141 r144 122 122 echo "function make_client_install..." 123 123 client_PassMasterIPAddr 124 tar -cvzf /opt/nutchez/NutchezForClientOf_$Master_IP_Address.tar.gz /opt/nutchez/nutch124 su nutchuser -c "tar -cvzf /opt/nutchez/NutchezForClientOf_$Master_IP_Address.tar.gz /home/nutchuser/nutchez/" 125 125 } 126 126 … … 131 131 su nutchuser -c "$Tomcat_HOME/bin/startup.sh" 132 132 } 133 134 function client_install_command () { 135 WhereAmI=pwd 136 echo "Client Install Command as Follows:" 137 echo "cd ~" 138 echo "mkdir NutchezClientInstall" 139 echo "scp $WhereAmI/* ~/NutchezClientInstall" 140 echo "./client_install" 141 }
Note: See TracChangeset
for help on using the changeset viewer.