First, decompression
Unzip Solr-5.4.0.zip
Ii. Creating the SOLR directory
Mkdir/usr/local/apache-tomcat-7.0.57/webapps/solr
Third, copy application
Copy the contents of the Solr-5.4.0/server/solr-webapp/webapp directory to/USR/LOCAL/APACHE-TOMCAT-7.0.57/WEBAPPS/SOLR
Cp-r SOLR-5.4.0/SERVER/SOLR-WEBAPP/WEBAPP/USR/LOCAL/APACHE-TOMCAT-7.0.57/WEBAPPS/SOLR
Iv. copy Jar
CP software/solr-5.4.0/server/lib/ext/*/usr/local/apache-tomcat-7.0.57/webapps/solr/web-inf/lib
V. Copy SOLR Home
Cp-r/software/solr-5.4.0/server/solr/usr/local
VI. copy log files
Create a apache-tomcat-7.0.57/webapps/solr/web-inf/classes directory
Copy log files to this directory
CP solr-5.4.0/server/resources/log4j.properties/usr/local/apache-tomcat-7.0.57/webapps/solr/web-inf/classes
Seven, modify/usr/local/apache-tomcat-7.0.57/webapps/solr/web Inf/web.xml, uncomment, modify Solr/home.
<env-entry>
<env-entry-name>solr/home</env-entry-name>
<env-entry-value>/usr/local/solr</env-entry-value>
<env-entry-type>java.lang.String</env-entry-type>
</env-entry>
Eight, modify Tomcat Server.xml in the host node to add
<context path= "/SOLR" docbase= "/USR/LOCAL/APACHE-TOMCAT-7.0.57/WEBAPPS/SOLR" debug= "0" privileged= "true" > </Context>
Nine, start Tomcat
bin/startup.sh
Ten, visit
Http://192.168.137.50:8080/solr/index.html
solr-5.4.0 Installation