Facebook Twitter Instagram
    TecAdmin
    • Home
    • Ubuntu 20.04
      • Upgrade Ubuntu
      • Install Java
      • Install Node.js
      • Install Docker
      • Install LAMP Stack
    • Tutorials
      • AWS
      • Shell Scripting
      • Docker
      • Git
      • MongoDB
    • FeedBack
    • Submit Article
    • About Us
    Facebook Twitter Instagram
    TecAdmin
    Home»Linux Tutorials»How To Install Apache Solr 9.0 on CentOS/RHEL 8

    How To Install Apache Solr 9.0 on CentOS/RHEL 8

    RahulBy RahulJuly 5, 20203 Mins ReadUpdated:May 25, 2022

    Apache Solr is an open-source search platform written on Java. Solr provides full-text search, spell suggestions, custom document ordering and ranking, Snippet generation, and highlighting. Solr handles a variety of data types out of the box, including JSON, XML, many Office documents, CSV, and more. At the time of writing this tutorial, Solr 8.9.0 is the latest version available for installation.

    This tutorial will help you to install Apache Solr 9.0 on CentOS/RHEL 8 systems.

    Prerequisites

    We assume you already have shell access to your CentOS/RHEL 8 system with a sudo privilege account. For remote systems, log in with the SSH client.

    Step 1 – Install Java

    Apache Solr 9.0 required Java 11 or greater version to run. Make sure your system fulfills the Java requirements on your system. If not run the following command to install Java.

    sudo dnf install java-11-openjdk  
    

    Then check installed Java version:

    java -version
    
    openjdk version "11.0.4" 2019-07-16 LTS
    OpenJDK Runtime Environment 18.9 (build 11.0.4+11-LTS)
    OpenJDK 64-Bit Server VM 18.9 (build 11.0.4+11-LTS, mixed mode, sharing)
    

    Step 2 – Install Apache Solr on CentOS/RHEL 8

    Now download the required Solr version from its official site or mirrors. You may also use the below command to download Apache Solr 9.0 from its official website. After that extract the installer script.

    wget https://dlcdn.apache.org/solr/solr/9.0.0/solr-9.0.0.tgz
    

    In case the download fails with 404 error. Visit the official Solr download page to download the latest available version.

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

    Then execute the installer script with bash shell followed with downloaded Archive file. The command will be like below:

    sudo bash ./install_solr_service.sh solr-9.0.0.tgz 
    

    This will create an account named solr on your system and finish the installation process. After that start the service default Solr port 8983.

    Step 3 – Manageing Apache Solr Service

    Apache Solr service is managed under the systemd daemon. Use the following commands to Start, Stop and check the status of the Solr service.

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

    Step 4 – Create a New Collection

    A collection is a group of cores that together form a single logical index. A collection has a different set of configuration files and schema definitions than other collections. You can create a collection by running the following command:

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

    Sample output:

    Created new core 'mycol1'
    

    Step 5 – Access Solr Admin Panel

    By default, the Solr server runs on port 8983. Access Solr dashboard in your web browser using server ip address or hostname with 8983 port.

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

    How to Install Solr on CentOS 8

    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 CentOS 8

    Conclusion

    In this tutorial, you have learned to install Apache Solr on CentOS/RHEL 8 system. Also created a new collection in the Apache Solr server via a command-line utility.

    Apache CentOS 8 Solr
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email WhatsApp
    Previous ArticleHow to Secure MongoDB with User Authentication
    Next Article How To Install Redis on Debian 10

    Related Posts

    What is the /etc/nsswitch.conf file in Linux

    2 Mins Read

    How to Setup Squid Proxy Server on Ubuntu and Debian

    Updated:June 17, 20225 Mins Read

    How to Delete a Let’s Encrypt Certificate using Certbot

    Updated:June 3, 20222 Mins Read

    Configuring Apache Solr to Accessible on Public IP

    2 Mins Read

    How to Install Apache Solr 9.0 on Ubuntu 22.04

    Updated:May 26, 20223 Mins Read

    How to Install Latest Git on Ubuntu 22.04

    Updated:May 31, 20222 Mins Read

    Leave A Reply Cancel Reply

    Recent Posts
    • What is the /etc/nsswitch.conf file in Linux
    • How to Install Ionic Framework on Ubuntu 22.04
    • What is the /etc/hosts file in Linux
    • How to Install Angular CLI on Ubuntu 22.04
    • How to Install Composer on Ubuntu 22.04
    Facebook Twitter Instagram Pinterest
    © 2022 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.