Apache SOLR's Environment building
Assume $solr_home is D:\Program FILES\SOLR-TOMCAT\SOLR
Step 1, copy Solr-4.1.0.war from solr-4.1.0\dist to $solr_home and rename to Solr.war;
Step 2, copy the SOLR-4.1.0\EXAMPLE\SOLR to the $solr_home directory;
Step 3, create a new solr.xml under Tomcat/conf/catalina/localhost, as follows:
<context docbase= "D:/program files/apache-tomcat-7.0.29/apache-tomcat-7.0.29/webapps/solr" debug= "0" Crosscontext= "true" > <environment name= "Solr/home" type= "java.lang.String" value= "D:/program files/ SOLR-TOMCAT/SOLR "override=" true "/> </Context>
Step 4, copy all the jars from Solr-4.1.0\example\lib\ext to Tomcat/lib, and copy the Solr-4.1.0\example\resources\ Log4j.properties to Tomcat/lib (for a description of the log, see http://wiki.apache.org/solr/SolrLogging), notice that Solr-4.1.0.jar does not have its own log printing component, so this step does not execute and may cause "Org.apache.catalina.core.StandardContext Filterstart severe:exception Starting filter Solrrequestfilter org.apache.solr.common.SolrException:Could not find necessary slf4j logging jars. " abnormal;
Step 5, launch Tomcat, visit the SOLR Admin page http://127.0.0.1:8086/solr.
For instructions on how SOLR deploys under different Web containers, you can refer to the official instructions Http://wiki.apache.org/solr/SolrInstall
Apache SOLR's Environment building