Changeset 77
- Timestamp:
- Jun 4, 2009, 6:26:49 PM (15 years ago)
- Location:
- nutchez-0.1
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
nutchez-0.1/bin/nutchez
r75 r77 15 15 export HADOOP_CONF_DIR=~/.nutchez 16 16 export NUTCH_LOG_DIR=~/.nutchez/log 17 18 if [ $JAVA_HOME = "" ];then 19 export JAVA_HOME=/usr/lib/jvm/java-6-sun 20 fi 21 17 22 # export NUTCH_HOME=/opt/nutch 18 23 19 24 . /opt/nutch/bin/nutchez-func.sh 20 . ~/.nutchez/hadoop-env.sh25 #. ~/.nutchez/hadoop-env.sh 21 26 22 27 … … 93 98 done 94 99 100 set_nutchez_p 101 95 102 start_crawl 96 103 97 #start_tomcat104 start_tomcat 98 105 99 106 # show result message 100 107 101 #show_report108 show_report 102 109 103 110 # Done -
nutchez-0.1/bin/nutchez-func.sh
r75 r77 90 90 mkdir ~/.nutchez/search 91 91 fi 92 # change explorer port93 sed -i -e "s/<Connector port=\"[0-9]*\"/<Connector port=\"$PORT\"/" ~/.nutchez/tomcat/conf/server.xml94 92 fi 93 # change explorer port 94 sed -i -e "67s/<Connector port=\"[0-9]*\"/<Connector port=\"$PORT\"/" ~/.nutchez/tomcat/conf/server.xml 95 95 } 96 96 … … 156 156 # define paramaters 157 157 158 start_crawl () { 159 158 set_nutchez_p () { 160 159 ROBOT=`cat ~/.nutchez/sav/n.robot.txt` 161 160 URLS=`cat ~/.nutchez/sav/n.urls.txt` 162 161 DEPTH=`cat ~/.nutchez/sav/n.crawler.txt` 163 162 PORT=`cat ~/.nutchez/sav/n.tomcat.txt` 163 } 164 start_crawl () { 164 165 165 166 echo_vb "7. start_crawl" … … 180 181 ~/.nutchez/tomcat/bin/shutdown.sh 181 182 ~/.nutchez/tomcat/bin/startup.sh 183 sleep 3 182 184 } 183 185 -
nutchez-0.1/tomcat/conf/server.xml
r69 r77 20 20 Documentation at /docs/config/server.html 21 21 --> 22 <Server port="80 83" shutdown="SHUTDOWN">22 <Server port="8005" shutdown="SHUTDOWN"> 23 23 24 24 <!--APR library loader. Documentation at /docs/apr.html --> … … 87 87 88 88 <!-- Define an AJP 1.3 Connector on port 8009 --> 89 <Connector port="80 83" protocol="AJP/1.3" redirectPort="8443" />89 <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" /> 90 90 91 91
Note: See TracChangeset
for help on using the changeset viewer.