Web Servers

How To Install Apache Solr 8.5.2 on CentOS 7

In this tutorial, we will learn how to install Apache Solr 8.5.2 on CentOS 7.

Solr is highly reliable, scalable and fault tolerant, providing distributed indexing, replication and load-balanced querying, automated failover and recovery, centralized configuration and more. Solr powers the search and navigation features of many of the world’s largest internet sites.

Let’s get started with installations.

1. Keep the server up-to-date

# yum update -y

2. Install all required packages:

# yum install java lsof mysql-connector-java

3. Now, download and install Apache Solr

You can check the latest version of Apache Solr here:

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

For download link, you can click on the version you want to download and install. Also you can find the commands to verify the integrity of the files on the same download page. It’s always recommended to verify the gpg.

Follow these steps to install Apache Solr 8.5.2

# wget https://mirrors.estointernet.in/apache/lucene/solr/8.5.2/solr-8.5.2.tgz
# tar xzf solr-8.5.2.tgz solr-8.5.2/bin/install_solr_service.sh –strip-components=2
# ./install_solr_service.sh solr-8.5.2.tgz

Once the installation gets completed, verify it by checking the status of the solr service using following command:

# service solr status

To access Apache solr via web browser:

http://[server IP]:8983/solr

If you unable to access it, check the firewall.

That’s it, the installation is done.

We have learnt how to install Apache Solr 8.5.2 on CentOS 7.

[Need assistance to fix this error or install tools? We’ll help you.]

Related Articles