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: 

Prerequisites:

  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.

http://www.oracle.com/technetwork/java/javase/downloads/index.html.

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: 

  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.

http://lucene.apache.org/solr/downloads.html

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

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

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

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

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.

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