Build a local Solr server and a Solr Server
1. Download The Solr official website http://developere.apache.org/solr/to download the solrproject FileIn 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: