solr5.0 Installing the Tomcat standalone version

Source: Internet
Author: User
Tags solr

1. Version



2. Specific steps

(1). Deploy SOLR

A. Copy the Solr.war from the Solr-5.0.0/server/webapps/solr.war directory to/usr/apache-tomcat-7.0.42/webapps/and start the Tomcat decompression "Solr.war";

B. Create a new folder under/usr/apache-tomcat-7.0.42/webapps/solr/Solr_home;

C. Copy all contents of the "SOLR-5.0.0\SERVER\SOLR" directory in the SOLR decompression directory to solr_home.

(2). Configuring Solr_home (Recommended Method 1)

Method 1: Modify the Apache-tomcat-7.0.42/webapps/solr/web-inf/web.xml, uncomment, configure the value of "Env-entry-value" to

<env-entry>       <env-entry-name>solr/home</env-entry-name>       <env-entry-value>/ Solr5.0.0/apache-tomcat-7.0.42/webapps/solr/solr_home</env-entry-value>       <env-entry-type> Java.lang.string</env-entry-type></env-entry>

Method 2: Add the Solr.xml under/usr/apache-tomcat-7.0.42/conf/catalina/localhost, with the following content:

<?xml version= "1.0" encoding= "Utf-8"? ><context docbase= "/usr/apache-tomcat-7.0.42/webapps/solr.war" debug = "0" crosscontext= "true" >     <environment name= "Solr/home" type= "java.lang.String" value= "/usr/ Apache-tomcat-7.0.42/webapps/solr/solr_home "override=" true "/></context>

(3). Configuration Log

Copy the jar package from the Server\lib\ext in the SOLR directory to the solr/web-inf/of Tomcat. At this time, although the jar package is added, but there is no corresponding log configuration, the under solr-5.0.0\server\resources need to be placed under solr/web-inf/classes/.

(4). Turn the tomcat back on;

(5). The browser opens HTTP://LOCALHOST:8080/SOLR to verify that the installation was successful.

solr5.0 Installing the Tomcat standalone version

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: 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.