githubEdit

Introduction

Solr powers some of the most heavily-trafficked websites and applications in the world.

Solr is highly reliable, scalable and fault tolerant, providing distributed indexing, replication and load-balanced querying, automated failover and recovery, centralized configuration and more. Solr powers the search and navigation features of many of the world's largest internet sites.

Today, we are going to install solr in our ubuntu server.

  1. The following command will install the solr in our system:

sudo apt update -y 
cd /opt
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
 
  1. Now, Solr should be up and running, verify with

sudo service solr status

If not, try this:

sudo service solr stop
sudo service solr start
sudo service solr status
  1. By default the port of Solr is 8983. Try : http://localhost:8983/arrow-up-right

If we are using localhost and wanna try to port mapping to public try ngrok. Let's do it.

Ngrok setup for solr :

  1. Login with solr : ngrok.comarrow-up-right.

Now config your authtoken:

Try:

Or:

Now you will get your public url: https://8276-20-172-46-65.ngrok-free.apparrow-up-right

Last updated