How to Install Apache Solr on POP! OS Latest

Apache Solr is a powerful and popular search platform that can help you index and search large amounts of data, making it ideal for use in web-based applications. In this tutorial, we'll walk you through the steps of installing Apache Solr on the latest version of POP! OS, which is based on Ubuntu.

Prerequisites

Before beginning the installation process, make sure that your POP! OS system meets the following requirements:

Step 1: Install Java

Apache Solr requires Java to run, so the first step is to ensure that your system has Java installed. You can install it by running the following command:

sudo apt-get update
sudo apt-get install default-jdk

Once the installation is complete, you can verify that Java is properly installed by running the following command:

java -version

This should return the version of the Java Runtime Environment (JRE) that is installed on your system.

Step 2: Download and Extract Apache Solr

The next step is to download Apache Solr from the official website. You can do this by running the following command:

wget https://downloads.apache.org/lucene/solr/8.9.0/solr-8.9.0.tgz

This will download the Apache Solr archive in the current directory. You can then extract it using the following command:

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

This will extract the archive and create a new directory called solr-8.9.0. It will also extract the install_solr_service.sh script, which we'll use in the next step.

Step 3: Install Apache Solr as a Service

To run Apache Solr as a service on your system, you can use the install_solr_service.sh script that was extracted in the previous step. To install it, run the following command:

sudo bash ./install_solr_service.sh solr-8.9.0.tgz

This will start the installation process and prompt you for some configuration options. You can press Enter to accept the default values for most of the options, but you should make sure to choose an appropriate name for your Solr service.

Once the installation is complete, you can start the Solr service using the following command:

sudo systemctl start solr

You can also check the status of the service using the following command:

sudo systemctl status solr

This should display information about the Solr service, including whether it is currently running.

Step 4: Verify the Installation

To verify that Apache Solr is running properly on your system, you can visit the Solr web interface using your web browser. Open your web browser and navigate to the following address:

http://localhost:8983/

This should display the Solr admin dashboard, which will allow you to create new collections and perform searches on your data.

Congratulations! You have successfully installed Apache Solr on your POP! OS system.

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!