SOLR Learn to summarize the installation and configuration of SOLR

Source: Internet
Author: User
Tags solr

Next, here is a summary of the installation and configuration of SOLR

  1. Get ready

1. Installing JAVA8 and Tomcat9, Java and Tomcat installations are no longer duplicated here. It is important to note that these two versions are compatible with the issue. Seemingly java8 not supported, TOMCAT7 the following versions.

2. Download SOLR installation package, the latest version is 5.3.1

: http://www.apache.org/dyn/closer.lua/lucene/solr/5.3.1

  2. Installation

1. Unzip the SOLR tarball and place the Solr-5.3.1\server\solr-webap folder under the WebApp folder, copy it to the Tomcat\webapps\ directory, and Change to SOLR

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

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

4. Create a D:\solr_home directory and copy the SOLR package in SOLR-5.3.0/SERVER/SOLR directory to D:\solr_home directory

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

12345 <env-entry>       <env-entry-name>solr/home</env-entry-name>       <env-entry-value>D:/solr_home</env-entry-value>       <env-entry-type>java.lang.String</env-entry-type></env-entry>

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

This configuration is primarily to establish the relationship between Tomcat and SOLR, and its role is to have Tomcat find the SOLR directory you have configured.

6. Restart Tomcat and the admin interface of SOLR will appear in the browser input HTTP://LOCALHOST:8080/SOLR

Note: I just started http://localhost:8080/solr/page inaccessible. The following exception occurred:

Workaround: Copy the jar package from SOLR unpacked folder Dist to the Tomcat\webapps\solr\web-inf\lib directory and create the Lib directory in the jar package and contrib\velocity\lib.

7. Configure collection, under the D:\solr_home directory, create a directory mycore1, copy all the files under D:\solr_home\configsets\basic_configs\conf to D:\solr_home \ mycore1\conf under

8. In the D:\solr_home directory, create the file core.properties, and edit the file

1 name= mycore1

9. Visit the page HTTP://LOCALHOST:8080/SOLR, view core Admin, ' Mycore1 ' is displayed

Here, SOLR is basically installed successfully.

SOLR Learn to summarize the installation and configuration of SOLR

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.