Windows has the SOLR installed

Source: Internet
Author: User
Tags solr

  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 folder, such as D:\apache\solr-4.3.0
  4. find a folder as the Solr home folder. such as d:/solrhome
  5. Copy D : \apache\solr-4.3.0\dist folder under Solr-4.3.0.war package to D:/solrhome , then unzip the Solr-4.3.0.war. Rename to SOLR.
  6. Copy all files under the D:\apache\solr-4.3.0\example\solr folder to D:/SOLRHOME/SOLR
  7. Add Solr.xml under the Tomcat\conf\catalina\localhost folder, such as the following:
    <?

    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\ Solr\web-inf\web.xml, for example, the following code stares and changes such as the following:
    <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. Launch Tomcat, visit http://localhost:8090/solr/(mine port to 8090)

Copyright notice: This article Bo Master original articles, blogs, without consent may not be reproduced.

Windows has the SOLR installed

Related Article

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.