This tutorial will help you to install Apache Solr 9.0 on Ubuntu 22.04 Jammy Jellyfish systems.

Step 1 – Install Java

Apache Solr 9 required Java 11 or greater version to run. It is also tested with Java 17. Make sure that your system satisfied all requirements of Apache Solr. If in case, java is not installed on your system run the following command: After installation, check the active Java version:

Step 2 – Installing Apache Solr on Ubuntu

At the time of writing this tutorial, Apache Solr 9.0 is the latest available version. That can be downloaded with the following command. In case the download failed, visit the Solr download page to get the latest version. To download Apache Solr 9.0, type: After downloading, extract the Apache Solr service installer shell script from the Solr archive file. Then, start the Solar installation on Ubuntu by executing the following command. Make sure to run the command from the same directory of the downloaded archive file. This will complete the Apache Solr installation on your Ubuntu system.

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.

Start Solr service:sudo systemctl stop solr Stop Solr service:sudo systemctl start solr Check the status of Solr service:sudo systemctl status solr

Step 4 – Create A New Solr Collection

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

Step 5 – Allow Apache Solr Public Access

The default Apache Solr runs on localhost only. To allow the Solr server publically accessible over networks, edit the /etc/default/solr.in.sh configuration file. Search for the SOLR_JETTY_HOST variable. Uncomment it by removing the starting hash (#) symbol. Set the value to “0.0.0.0”. Save the file and close it. Restart the Solr service to apply changes. Check the Apache Solr listening host address. As per the above screenshot, the Solr is listening on all (“*”) interfaces.

Step 6 – Access Solr Admin Panel

The default Apache Solr runs on port 8983. You can access the Solr port in your web browser using the server IP address or domain name pointed to that server. Now, select “mycol1” under core selector drop down in the left sidebar Here you can view statics of created collection in previous steps named “mycol1”. Click on “Core Selector” on the left sidebar and select created collection.

Conclusion

In this tutorial, you have learned about the installation of the Apache Solr service on the Ubuntu 22.04 Linux system.

How to Install Apache Solr 9 0 on Ubuntu 22 04   TecAdmin - 42How to Install Apache Solr 9 0 on Ubuntu 22 04   TecAdmin - 34How to Install Apache Solr 9 0 on Ubuntu 22 04   TecAdmin - 61How to Install Apache Solr 9 0 on Ubuntu 22 04   TecAdmin - 83How to Install Apache Solr 9 0 on Ubuntu 22 04   TecAdmin - 48