• Home
  • Ubuntu 18.04
    • Whats New?
    • Upgrade Ubuntu
    • Install Java
    • Install Node.js
    • Install Docker
    • Install Git
    • Install LAMP Stack
  • Tutorials
    • AWS
    • Shell Scripting
    • Docker
    • Git
    • MongoDB
  • Funny Tools
  • FeedBack
  • Submit Article
  • About Us
TecAdmin
Menu
  • Home
  • Ubuntu 18.04
    • Whats New?
    • Upgrade Ubuntu
    • Install Java
    • Install Node.js
    • Install Docker
    • Install Git
    • Install LAMP Stack
  • Tutorials
    • AWS
    • Shell Scripting
    • Docker
    • Git
    • MongoDB
  • Funny Tools
  • FeedBack
  • Submit Article
  • About Us

How to Install Apache Solr 8.3 on Debian 10/9/8

Written by Rahul, Updated on December 13, 2019

Apache Solr is an opensource search platform written in Java. Solr provides full-text search, spell suggestions, custom document ordering and ranking, Snippet generation and highlighting. This tutorial will help you to install Apache Solr 8.3 on Debian 10 Buster, Debian 9 Stretch and Debian 8 Jessie.

  • Install Apache Solr on CentOS, RedHat

Step 1 – Prerequsities

Apache Solr 8 required Java 8 or greater to run. Make sure your system fulfills the Java requirements of Apache Solr. If you don’t have java installed on your system visit the below articles.

sudo apt install default-java

Check the installed java version

java -version

openjdk version "11.0.4" 2019-07-16
OpenJDK Runtime Environment (build 11.0.4+11-post-Debian-1deb10u1)
OpenJDK 64-Bit Server VM (build 11.0.4+11-post-Debian-1deb10u1, mixed mode, sharing)

Step 2 – Install Apache Solr on Debian

Now download the required Solr version from its official site or mirrors. Or simply use the following command to download Apache Solr 8.3.1.

wget http://www-eu.apache.org/dist/lucene/solr/8.3.1/solr-8.3.1.tgz

Now extract Apache Solr service installer shell script from the downloaded Solr archive file and run the installer using following commands.

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

Step 3 – Manage Solr Service

Use the following commands to Start, Stop and check the status of Solr service.

sudo systemctl stop solr
sudo systemctl start solr
sudo systemctl status solr

Step 4 – Create First Solr Collection

After successful installation of Solr on your system. Create the first collection in Apache Solr using the following command.

sudo su - solr -c "/opt/solr/bin/solr create -c mycol1 -n data_driven_schema_configs"

Sample output:

Created new core 'mycol1'

Step 5 – Access Solr Admin Panel

Default Solr runs on port 8983. You can access Solr port in your web browser and you will get Solr dashboard.

  http://demo.tecadmin.net:8983/

Install Solr on Debian

Here you can view statics of created collection in previous steps named “mycol1”. Click on “Core Selector” on the left sidebar and select created collection.

Install Apache Solr on Debian

The above images are used from the older version but with the latest version, you will see the same screen.

Share it!
Share on Facebook
Share on Twitter
Share on LinkedIn
Share on Reddit
Share on Tumblr
Share on Whatsapp
Rahul
Rahul
Connect on Facebook Connect on Twitter

I, Rahul Kumar am the founder and chief editor of TecAdmin.net. I am a Red Hat Certified Engineer (RHCE) and working as an IT professional since 2009..

1 Comment

  1. Avatar Rossy Reply
    August 31, 2019 at 2:19 am

    Hi Rahul,

    Great post from you, about installing latest Solr.. 🙂

    btw,
    http://demo.tecadmin.net:8983/

    Please explain how to change access by localhost (127.0.0.1) to domain (http://demo.tecadmin.net:8983)
    (include with all setting authentication in access solr by domain)
    https://lucidworks.com/post/securing-solr-basic-auth-permission-rules/

    Iam using latest nginx (1.16) on centos 7

Leave a Reply Cancel reply

Popular Posts

  • How To Install Python 3.9 on Ubuntu 20.04 5
  • How to Install Python 3.9 on CentOS/RHEL 7 & Fedora 32/31 0
  • How To Install VNC Server on Ubuntu 20.04 1
  • How To Install NVM on macOS with Homebrew 0
  • (Solved) apt-add-repository command not found – Ubuntu & Debian 0
© 2013-2020 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy