Prerequisites

  • Ubuntu 24.04 server
  • SSH access with sudo privileges
  • Java Runtime Environment (JRE) installed

Step 1: Update System Packages

sudo apt update && sudo apt upgrade -y

Step 2: Install Java

sudo apt install openjdk-17-jre -y

Step 3: Download Apache Solr

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

Step 4: Extract and Install Solr

tar xzf solr-9.3.0.tgz
cd solr-9.3.0
sudo ./bin/install_solr_service.sh solr-9.3.0.tgz

Step 5: Start and Enable Solr

sudo systemctl start solr
sudo systemctl enable solr

Step 6: Verify Installation

sudo systemctl status solr

Access the Solr web interface by opening:

http://your-server-ip:8983

 

Leave a Reply

Your email address will not be published. Required fields are marked *