Install Solr 5.2.1 on CentOS/RHEL 5/6/7

Apache Solr is a fast search platform from the open source Apache Lucene project. Where Lucene is a powerful search engine framework, Solr includes an http-wrapper around Lucene so it’s ready-to-use out of the box. Features include full-text search, hit highlighting, faceted search, dynamic clustering, database integration, rich document handling, and geospatial search. Solr is used by some of the largest companies in the world to power their public projects.

20150220230831!Solr_0

Step 1: Check Java Version

JAVA is the first requirement for Solr establishment. Verify you have JAVA SE 6 or Later form introduced in your framework. Utilization taking after order to check in the event that you have java introduced as of now on your framework.

# java -version
java version "1.8.0_31"
Java(TM) SE Runtime Environment (build 1.8.0_31-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.31-b07, mixed mode)
If you do not have java installed, Use any article Install Java 7 or Install Java 8 in RHEL based systems.

Install Java 8 on CentOS/RHEL 6/5
Install JAVA 7 on CentOS/RHEL

Step 2: Download Solr
First we download solr source file using following command:

# cd /opt
# wget http://download.techoism.com/solr-5.2.1.zip

Now we extract tar file using following command:

# gunzip solr-5.2.1.zip
# tar -xvf solr-5.2.1.tar

Step 3: Move Solr
Now we move solr directory where we want to setup solr

# mv solr-5.2.1 /usr/local/apache/solr
# cd /usr/local/apache/solr

Step 4: Start Solr
To begin Solr surprisingly after establishment, simply do:

# bin/solr start

This will dispatch a standalone Solr server out of sight of your shell, listening on port 8983. Then again, you can dispatch Solr in “cloud” mode, which permits you to scale out utilizing sharding and replication. To dispatch Solr in cloud mode, do:

# bin/solr start -cloud

To see every accessible alternative for beginning Solr, kindly do:

# bin/solr start -help

In the wake of beginning Solr, make either a center or gathering relying upon whether Solr is running in standalone (center) or SolrCloud mode (accumulation) by doing:

# bin/solr create -c 

To see every single accessible choice for making another gathering, execute:

# bin/solr create -help

Step 4: Access Solr
In the wake of beginning Solr, direct your Web program to the Solr Admin Console at:

# http://localhost:8983/solr/

solr_1

No Responses

Leave a Reply

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

The reCAPTCHA verification period has expired. Please reload the page.