Installing SOLR under Windows

Source: Internet
Author: User

  1. : http://archive.apache.org/dist/lucene/solr/
  2. Operating environment: WIN7,TOMCAT6, Solr4.3, Jdk6
  3. Download the solr4.3 package and unzip it to a local directory, such as D:\apache\solr-4.3.0
  4. find a directory as the home directory of SOLR, such as D:/solrhome
  5. Copy D : \apache\solr-4.3.0\dist directory under Solr-4.3.0.war package to D:/solrhome , then unzip the Solr-4.3.0.war and rename it to SOLR.
  6. Copy all files under the D:\APACHE\SOLR-4.3.0\EXAMPLE\SOLR directory to D:/SOLRHOME/SOLR
  7. In the Tomcat\conf\catalina\localhost directory, add Solr.xml, which reads as follows:
    <?xml version= "1.0" encoding= "UTF-8"? ><context docbase= "D:/SOLRHOME/SOLR" debug= "0" crosscontext= "true" >    <environment name= "Solr/home" type= "java.lang.String" value= "D:/solrhome" override= "true"/></ Context>
  8. Copy all the Lib packages under the Solr-4.3.0\example\lib\ext to Tomcat\lib
  9. in the D:\solrhome\ Remove the following code comment in Solr\web-inf\web.xml and modify it as follows:
    <env-entry>       <env-entry-name>solr/home</env-entry-name>       <env-entry-value>d:/ Solrhome/solr</env-entry-value>       <env-entry-type>java.lang.string</env-entry-type></ Env-entry>
  10. Start Tomcat, Access http://localhost:8090/solr/(my port is 8090)

Installing SOLR under Windows

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.