Apache SOLR's Environment building

Source: Internet
Author: User
Tags apache solr solr

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.