Build a local Solr server and a Solr Server

Source: Internet
Author: User

Build a local Solr server and a Solr Server

1. Download The Solr official website http://developere.apache.org/solr/to download the solrproject File

In this project file, you can find the resource file required to run the Solr server in the local environment. Here we take 4.10.3 as an example,

 

In the distdirectory, we can get the solr-4.10.3.warfile. The package is currently running in Tomcat and cannot access the admin.html page in the normal project. There are two reasons:

  • Corresponding log jar package not introduced
  • No index library configured
Ii. Configure the log and index Library

1. In the downloaded project file solr-4.10.3 \ example \ lib \ ext directory, store the jar file on which war runs

, Copy these jar packages to the WEB-INF \ lib directory in the war package project

2. Under the downloaded project file solr-4.10.3 \ example directory, contains a folder named solr

This file is the solrhome file. Copy it to the root directory of the war package project and rename it solrhome.

, You also need to configure the solrhome access path, modify the web. xml file under the WEB-INF directory, in this file, you will find a piece of commented Configuration

It is used to configure the access path of the index database and configure the storage path corresponding to the copied solrhome file to the env-entry-value element, after you complete the test locally, You need to modify the path when publishing it to the server.

After completing the previous two steps, you can access the admin.html page under the browser project to see the following page:

 

 

 

 

 

 

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.