Tomcat under Deployment Solr5.3

Source: Internet
Author: User
Tags solr

Http://jingyan.baidu.com/article/d8072ac4625b07ec95cefdbe.html

Now the online about SOLR in Tomcat deployment of the article is basically 4.x, but SOLR upgraded to 5.x, the structure has changed, many articles have not been applied, here to explore the 5.x in Tomcat deployment method, so that everyone reference

Tools/Materials
    • Download SOLR 5.3 Version: http://www.apache.org/dyn/closer.lua/lucene/solr/5.3.0
    • Download Tomcat (6 or later) and download the 32-bit or 64-bit version according to the system: http://tomcat.apache.org/
Method/Step
  1. Unzip Tomcat into a directory, such as F:\Apache\Tomcat

  2. There is a WebApp folder under the Solr-5.3.0/d:\solr-5.3.0\server\solr-webapp\ folder in the SOLR zipped package, copy it to the Tomcat\webapps\ directory, and change it to SOLR (the name is arbitrary, Used by the browser to access the SOLR management interface)

  3. Copy the jars from the Solr-5.3.0\server\lib\ext in the SOLR compact package to the Tomcat\ webapps\solr\web-inf\lib directory

  4. Copy solr-5.3.0/server/resources/log4j.properties in SOLR compressed package to tomcat\ Webapps\solr\web-inf\lib directory

  5. Copy the SOLR-5.3.0/SERVER/SOLR directory in the SOLR compressed package to a directory on your computer, such as D:\solr_home

  6. Open Web. XML under Tomcat/webapps/solr/web-inf and find the following configuration (the content is commented out in the initial state):

    <env-entry>

    <env-entry-name>solr/home</env-entry-name>

    <env-entry-value>/put/your/solr/home/here</env-entry-value>

    <env-entry-type>java.lang.String</env-entry-type>

    </env-entry>

    Change the contents of <env-entry-value> into your solr_home path, this is D:/solr_home

  7. 7

    Save off, then start Tomcat, and the SOLR Admin interface will appear in the browser input HTTP://LOCALHOST:8080/SOLR

Tomcat under Deployment Solr5.3

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.