/    /  Solr – Installation

Solr – Installation:

In this tutorial, we will learn about how to install Solr in Linux and windows. It is easy to Install Solr in Linux or windows or any other platform where a Java Runtime Environment (JRE) is available. Let me show you the step by step process of Solr installation.

Install Solr in Linux or Windows: 


  1. Check the Java Runtime Environment (JRE) version 1.8 or higher which already exists in your system. If not, please install the Java 1.8 and you can download the Java software from the below link.


For Windows you can verify the environment variables section. Otherwise you can try giving the javac command in command prompt.

Verify the Java Installation in Linux as below: 

$ java -version
java version "1.8.0_60"
Java(TM) SE Runtime Environment (build 1.8.0_60-b27)
Java HotSpot(TM) 64-Bit Server VM (build 25.60-b23, mixed mode)

  1. Hardware Requirement will depend on the amount of data or documents formats like JSON, XML, Rich documents.., etc that you want to index or store.

Download the Solr software: 

You can download the Solr software for Linux or windows or OSX platforms from the below link. For all Linux or Unix or OSx platforms, you have to download the .tgz file and for Microsoft windows you have to download the .zip file.


Untar or unzip the software to get in to the directory and perform the below command to start

[solr@imongo solr-7.0.0]$ bin/solr start
NOTE: Please install lsof as this script needs it to determine if Solr is listening on port 8983.

Started Solr server on port 8983 (pid=3626). Happy searching!

You can give the below command to check the running status of the Solr

[solr@imongo solr-7.0.0]$ bin/solr status

Found 1 Solr nodes:

Solr process 3626 running on port 8983
 "version":"7.0.0 3ba304b29825a94249c5145b3f5061e87b87d8f8 - anshum - 2017-09-08 13:21:08",
 "uptime":"0 days, 0 hours, 0 minutes, 15 seconds",
 "memory":"20.4 MB (%4.2) of 490.7 MB"}

You can use the below command to start the Solr with a different port number.

bin/solr start -p 8984

You can use the below command to stop the Solr running on particular port number

bin/solr stop -p 8984

Solr installation comes with several examples which you can use to know the working nature and functionality of Solr. Using those examples you can explore the features of Solr. Examples that we have currently are techproducts, dih, schemaless, and cloud. To make use of one of those examples give the below command.

bin/solr -e techproducts

You can also use the web browser to check the status of Solr running.