jdk1.7 + ant1.9 + tomcat7 + nutch2.3 + solr5.3 + mysql5.6 installation

1. Install jdk
address: https://www.oracle.com/downloads/index.html
Download: jdk-7u79-linux-x64.gz (download according to the actual situation)
Unzip: tar -zvxf jdk-7u79-linux-x64 .gz
Create a directory: mkdir java
Move the decompressed folder to the specified directory: mv jdk1.7.0_79 /java
Configure environment variables: Create development.sh under the etc file profile.d Add environment variable content (here is just one of the ways ) roughly as follows:
export JAVA_HOME=/usr/java/jdk1.7.0_79
export ANT_HOME=/usr/ant/apache-ant-1.9.6
export JRE_HOME=$JAVA_HOME/jre
export CLASSPATH=.:$JAVA_HOME/lib:$ JRE_HOME/lib:$CLASSPATH
export PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$ANT_HOME/bin:$PATH
Restart the computer and
execute java -version
II. ant installation
address : http://jakarta.apache.org/ant/ index.html
download: apache-ant-1.9.6-bin.tar.gz
Unzip: tar -zvxf apache-ant-1.9.6-bin.tar.gz
Create a directory: mkdir ant
will move the unzip folder to the specified directory: mv apache-ant-1.9.6 /ant
Configure environment variables: see the environment in jdk Variable settings
Restart the computer
Execute ant -version
3. Tomcat installation
Address : http://tomcat.apache.org/
Download: apache-tomcat-8.0.26.tar.gz
Extract: tar -zvxf apache-tomcat-8.0.26. tar.gz
Create a directory: mkdir tomcat
Move the decompressed folder to the specified directory: mv apache-tomcat-8.0.26 /tomcat
The environment variable setting of tomcat is not necessary, set it according to the actual situation
Start tomcat: /usr/local/tomcat /bin/startup.sh
Visit http://127.0.0.1:8080 through the browser to verify whether the tomcat starts normally
4. After installing nutch 2.X, you
  need to use ant again to build the project from 2.x, relative to the whole process It may take a long time; when using ant to build a project, there may be an unresponsive situation for about 2-5 minutes, so don't make a fuss. If it does not respond for a long time, then interrupt the operation and rebuild
Address: http://nutch.apache.org/downloads.html
Download: apache-nutch-2.3-src.tar.gz
Extract: tar -zvxf apache-nutch-2.3-src.tar.gz
Create directory: mkdir nutch
will Move the decompressed folder to the specified directory: mv apache-nutch-2.3 /mutch
switch to the corresponding directory where the files after nutch decompression are stored and execute: ant can execute the project construction. The
construction process takes about 30-40m. For
detailed operations, see: http: //www.micmiu.com/opensource/nutch/nutch2x-tutorial/
Note: There is a bug in the nutch2.x version when testing, and the jar of hbase needs to be replaced.
Error log URL: https://wiki.apache.org/ nutch/ErrorMessagesInNutch2

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=327001852&siteId=291194637