How to install Solr 5.3 on CentOS/RHEL

Solr is the popular, blazing fast, open source NoSQL search platform from the Apache Lucene project. Its major features include powerful full-text search, hit highlighting, faceted search, dynamic clustering, database integration, rich document (e.g., Word, PDF) handling, and geospatial search. Solr is highly scalable, providing fault tolerant distributed search and indexing, and powers the search and navigation features of many of the world’s largest internet sites.


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
Install Java 7 on CentOS/RHEL

Step #2: Download & Extract Solr 5.3.0

First we download solr source file using following command:

# cd /opt
# wget

Now we extract tar file using following command:

# gunzip solr-5.3.0.tgz
# tar -xvf solr-5.3.0.tgz

Step #3: Move Solr

Now we move solr directory where we want to setup solr

# mv solr-5.3.0 /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/



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.