This tutorial will help you to install Apache Solr 9.0 on Ubuntu 20.04 LTS systems.

Prerequisites

First of all, log in to your Ubuntu system with sudo privileged account. Now, run the below command to upgrade the current packages on your system.

Step 1 – Installing Java

Apache Solr 9 required Java 1 or greater version. Make sure your system fulfills the Java requirements of Apache Solr. If you don’t have java installed on your system, execute the following command: Verify active Java version:

Step 2 – Installing Solr on Ubuntu

Now download the required Solr version from its official site or mirrors. Or simply use the following command to download Apache Solr 9.0 on your system. Then, extract Apache Solr service installer script from the downloaded Solr archive file. Run the installer followed by the archive file as below:

Step 3 – Manage Solr Service

Solr is configured as a service on your system. You can simply use the following commands to Start, Stop and check the status of the Solr service. To view the status of solr server, type: Use following commands to stop and start Apache solr service:

Step 4 – Create Collection in Solr

After the successful installation of Solr on your system. Create the first collection in Apache Solr using the following command. Sample output:

Step 5 – Access Solr Admin Panel

The default Apache Solr runs on port 8983. So, you can access your Solr service to this port in your web browser using the server IP or domain name.

Now, select “mycollection” under Core Selector drop down in left sidebar. This will show you the statics of the selected collection.

Conclusion

In this tutorial, you have learned to install Apache Solr on Ubuntu 20.04 LTS system. Also created a collection in the Solr.

How To Install Apache Solr 9 0 on Ubuntu 20 04   TecAdmin - 31How To Install Apache Solr 9 0 on Ubuntu 20 04   TecAdmin - 43