How to Install Apache Solr on Debian Latest

Apache Solr is a powerful search platform that allows to index and search data quickly from various sources. In this tutorial, we will guide you on how to install Apache Solr on your Debian system.

Prerequisites

Before starting the installation process, make sure your system meets the following requirements:

Step 1 – Install Java

Apache Solr requires Java to be installed on your system. If you do not have Java installed, you can install it by running the following command:

sudo apt-get install default-jdk

Verify if the installation was successful by running the following command:

java -version

Step 2 – Download Apache Solr

In this step, we will download Apache Solr by visiting the official Apache Solr website using a web browser or run the following command:

sudo wget https://archive.apache.org/dist/lucene/solr/8.9.0/solr-8.9.0.tgz

Step 3 – Extract Apache Solr

After downloading the Apache Solr package, extract it using the following command:

sudo tar xzf solr-8.9.0.tgz solr-8.9.0/bin/install_solr_service.sh --strip-components=2

This command will extract the Solr archive and remove the "install_solr_service.sh" file to have a clean directory.

Step 4 – Install Apache Solr

In this step, you will install Apache Solr using the "install_solr_service.sh" script included in the Solr package. Run the following command:

sudo ./install_solr_service.sh solr-8.9.0.tgz

This command will install Solr as a service on your system and start it automatically.

Step 5 – Verify Apache Solr Installation

You can verify the Apache Solr installation by accessing the web interface. Type the following URL in your web browser:

http://localhost:8983/solr

If the Solr web interface displays correctly, you have successfully installed Apache Solr on your Debian latest system.

Conclusion

In this tutorial, we have demonstrated how to install Apache Solr on a Debian system. You can now start using Apache Solr to index and search your data.

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!

Alternatively, for the best virtual desktop, try Shells!