Apache Solr Bash Script for ubuntu 22.04 LTS

Apache Solr is a open source search engine tools and here you can use the pre-define Apache Solr bash script in order to install the Apache Solr on Ubuntu 22.04 LTS machine.

Step 1: Copy the Bash Script 

#!/bin/bash

sudo apt-get update && apt-get upgrade -y

sudo apt-get install python-software-properties -y

sudo add-apt-repository ppa:webupd8team/java -y

sudo apt-get update -y

sudo apt-get install default-jre default-jdk -y

cd /tmp

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

sudo tar xzf solr-8.2.0.tgz solr-8.2.0/bin/install_solr_service.sh --strip-components=2

sudo ./install_solr_service.sh solr-8.2.0.tgz

sudo systemctl status solr.service

Step 2: Create a solr.sh bash file and paste the entire command here

vim solr.sh

Step 3: Execute the Apache Solr bash script 

You need to use the given command to execute the solr.sh script like this.

sh solr.sh

All done…

Conclusion


We have successfully install Apache Solr on Ubuntu 22.04 LTS, Still you have any issue, Please leave a message below.

Apache Solr Bash Script for ubuntu 22.04 LTS

Leave a Reply

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

Scroll to top