Changeset 77


Ignore:
Timestamp:
Jun 4, 2009, 6:26:49 PM (16 years ago)
Author:
waue
Message:

good

Location:
nutchez-0.1
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • nutchez-0.1/bin/nutchez

    r75 r77  
    1515  export HADOOP_CONF_DIR=~/.nutchez
    1616  export NUTCH_LOG_DIR=~/.nutchez/log
     17
     18if [ $JAVA_HOME = "" ];then
     19  export JAVA_HOME=/usr/lib/jvm/java-6-sun
     20fi
     21
    1722#  export NUTCH_HOME=/opt/nutch
    1823
    1924. /opt/nutch/bin/nutchez-func.sh
    20 . ~/.nutchez/hadoop-env.sh
     25#. ~/.nutchez/hadoop-env.sh
    2126
    2227
     
    9398done
    9499
     100set_nutchez_p
     101
    95102start_crawl
    96103
    97 #start_tomcat
     104start_tomcat
    98105
    99106# show result message
    100107
    101 #show_report
     108show_report
    102109
    103110# Done
  • nutchez-0.1/bin/nutchez-func.sh

    r75 r77  
    9090      mkdir ~/.nutchez/search
    9191    fi
    92     # change explorer port
    93     sed -i -e "s/<Connector port=\"[0-9]*\"/<Connector port=\"$PORT\"/" ~/.nutchez/tomcat/conf/server.xml
    9492  fi
     93  # change explorer port
     94  sed -i -e "67s/<Connector port=\"[0-9]*\"/<Connector port=\"$PORT\"/" ~/.nutchez/tomcat/conf/server.xml
    9595}
    9696
     
    156156# define paramaters
    157157
    158 start_crawl () {
    159 
     158set_nutchez_p () {
    160159  ROBOT=`cat ~/.nutchez/sav/n.robot.txt`
    161160  URLS=`cat ~/.nutchez/sav/n.urls.txt`
    162161  DEPTH=`cat ~/.nutchez/sav/n.crawler.txt`
    163162  PORT=`cat ~/.nutchez/sav/n.tomcat.txt`
     163}
     164start_crawl () {
    164165
    165166  echo_vb "7. start_crawl"
     
    180181  ~/.nutchez/tomcat/bin/shutdown.sh
    181182  ~/.nutchez/tomcat/bin/startup.sh
     183  sleep 3
    182184}
    183185
  • nutchez-0.1/tomcat/conf/server.xml

    r69 r77  
    2020     Documentation at /docs/config/server.html
    2121 -->
    22 <Server port="8083" shutdown="SHUTDOWN">
     22<Server port="8005" shutdown="SHUTDOWN">
    2323
    2424  <!--APR library loader. Documentation at /docs/apr.html -->
     
    8787
    8888    <!-- Define an AJP 1.3 Connector on port 8009 -->
    89     <Connector port="8083" protocol="AJP/1.3" redirectPort="8443" />
     89    <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />
    9090
    9191
Note: See TracChangeset for help on using the changeset viewer.