How to Install Apache Solr on Elementary OS Latest
Apache Solr is an open-source search platform that helps to search and index a large amount of data from different sources. In this tutorial, we will learn how to install Apache Solr on Elementary OS Latest version.
Prerequisites
- Running Elementary OS Latest version
- An account with sudo privileges
Step 1: Install Java
Java is a crucial component required to run Apache Solr platform. Follow the below steps to install Java:
Open the terminal by pressing
Ctrl + Alt + Tor open it from the application menu.Run the following command to update the package list:
sudo apt updateOnce the update process is completed, type the following command to install the default JDK package:
sudo apt install default-jdkAfter the installation, verify the version of Java by running the following command:
java -versionIt will return the version of Java installed on your system.
Step 2: Download Apache Solr
To download the latest version of Apache Solr, follow these steps:
Open any web browser and navigate to the following official Apache Solr download page:
Click on the latest version of Solr (e.g., Solr 8.10.0) from under "Latest Release" to download.
Extract the downloaded file and put it in
/optdirectorysudo tar -xzf solr-8.10.0.tgz -C /opt/Rename the extracted solr directory to
solrusing the following command:sudo mv /opt/solr-8.10.0 /opt/solr
Step 3: Start Apache Solr
To start Apache Solr, follow these steps:
Change the directory to the solr directory:
cd /opt/solr/binStart the Solr server using the
solrcommand:sudo ./solr startVerify that the server is running by going to your web browser and accessing the following URL:
If the server is running successfully, you will see the Apache Solr homepage.
Conclusion
In this tutorial, we have learned how to install Apache Solr on Elementary OS Latest version. We installed Java, downloaded and extracted Apache Solr, and started the Solr server. You can now use Apache Solr to search and index your data.