---
title: Install Apache Solr on Ubuntu 20.04
url: https://docs.vultr.com/install-apache-solr-on-ubuntu-20-04
description: Learn how to install Apache Solr on Ubuntu 20.04 with step-by-step instructions. Set up this powerful search platform for your applications quickly and easily.
publish_date: 2021-08-03T00:00:00Z
last_updated: 2025-04-01T00:00:00Z
header_image: https://assets.vultrdevrel.com/docs-main-doc-assets-1/958/519fe4f05b504a70.png
---

> Index of every Vultr Docs page in markdown: https://docs.vultr.com/llms.txt

## Introduction

Apache Solr is an open-source, highly scalable, reliable, and fault-tolerant search tool based on Java. It supports NoSQL and database queries through REST APIs such as Elasticsearch. In addition, it stores data and provides distributed indexing, replication, automated fail-over and recovery, and load-balanced querying to achieve data querying in near real-time. In this article, you will learn how to install Apache Solr on Ubuntu 20.04 Server.

## Prerequisites

* Deploy a [fully updated](https://docs.vultr.com/how-to-update-a-vultr-cloud-server#how-to-update-debian--ubuntu) Vultr Ubuntu 20.04 Server.
* Create a non-root user with sudo access.

## 1. Install Java

Install Java.

    $ sudo apt install default-jdk -y

Verify the Java installation.

    $ java -version

## 2. Install Apache Solr

To download the latest version of Apache Solr, go to the Apache [official download website](https://archive.apache.org/dist/lucene/solr/).

Download Apache Solr.

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

Extract the downloaded archives.

    $ sudo tar xzf solr-8.9.0.tgz

Install Apache Solr.

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

Check the status of the Apache Solr service.

    $ sudo systemctl status solr

Enable the Apache Solr service to start on system boot.

    $ sudo systemctl enable solr

Allow port `8983` through the UFW firewall.

    $ sudo ufw allow 8983

To access the Apache Solr web interface, go to your browser and enter `http://serverIP:8983`. For example:

    http://192.0.2.11:8983

## Conclusion

You have successfully installed Apache Solr. You can now begin creating new Solr collections via the web dashboard.

* Collection is a logical index spread across multiple servers.
* Core is that part of the server which runs one collection.

## More Information

For more information on Apache Solr, please see the [official documentation](https://solr.apache.org/resources.html).
