1. Version
solr5.0.0
tomcat-7.0.42
2. Specific steps
(1). Deploy SOLR
A. Copy the Solr.war from the Solr-5.0.0/server/webapps/solr.war directory to/usr/apache-tomcat-7.0.42/webapps/and start the Tomcat decompression "Solr.war";
B. Create a new folder under/usr/apache-tomcat-7.0.42/webapps/solr/Solr_home;
C. Copy all contents of the "SOLR-5.0.0\SERVER\SOLR" directory in the SOLR decompression directory to solr_home.
(2). Configuring Solr_home (Recommended Method 1)
Method 1: Modify the Apache-tomcat-7.0.42/webapps/solr/web-inf/web.xml, uncomment, configure the value of "Env-entry-value" to
<env-entry> <env-entry-name>solr/home</env-entry-name> <env-entry-value>/ Solr5.0.0/apache-tomcat-7.0.42/webapps/solr/solr_home</env-entry-value> <env-entry-type> Java.lang.string</env-entry-type></env-entry>
Method 2: Add the Solr.xml under/usr/apache-tomcat-7.0.42/conf/catalina/localhost, with the following content:
<?xml version= "1.0" encoding= "Utf-8"? ><context docbase= "/usr/apache-tomcat-7.0.42/webapps/solr.war" debug = "0" crosscontext= "true" > <environment name= "Solr/home" type= "java.lang.String" value= "/usr/ Apache-tomcat-7.0.42/webapps/solr/solr_home "override=" true "/></context>
(3). Configuration Log
Copy the jar package from the Server\lib\ext in the SOLR directory to the solr/web-inf/of Tomcat. At this time, although the jar package is added, but there is no corresponding log configuration, the log4j.properties under solr-5.0.0\server\resources need to be placed under solr/web-inf/classes/.
(4). Turn the tomcat back on;
(5). The browser opens HTTP://LOCALHOST:8080/SOLR to verify that the installation was successful.
solr5.0 Installing the Tomcat standalone version