sammlinux sammlinux
  • Ubuntu
    UbuntuShow More
    How To Install and Use Docker CE on Ubuntu 22.04
    26 Min Read
    How To Install and Secure phpMyAdmin on Ubuntu 22.04
    5 Min Read
    How To Secure SSH with Fail2Ban on Ubuntu 22.04
    8 Min Read
    How To Install Uptime Kuma on Ubuntu 22.04
    17 Min Read
    How To Install Ubuntu Server 22.04 LTS with Screenshots
    14 Min Read
  • Rocky Linux
    Rocky LinuxShow More
    How To Install phpMyAdmin on Rocky Linux 9
    15 Min Read
    How To Secure SSH with Fail2Ban on Rocky Linux 9
    12 Min Read
    How To Install Rocky Linux 9.2 Server with Screenshots
    12 Min Read
    How To Set Up a Firewall Using FirewallD on Rocky Linux 9
    8 Min Read
    How To Install Nginx on Rocky Linux 9: A Comprehensive Guide
    10 Min Read
  • Debian
    DebianShow More
    How To Secure SSH with Fail2Ban on Debian 11
    8 Min Read
    How To Install Debian 11 (Bullseye) Server with Pictures
    12 Min Read
    How To Install and Setup Node.js on Debian 11
    6 Min Read
    How To Install PHP 8.2 on Debian 11
    12 Min Read
    How To Install Nginx on Debian 11: A Comprehensive Guide
    9 Min Read
  • Linux
    LinuxShow More
    Best Practices Linux Server Security for System Administrator
    8 Min Read
    A Simple Guide: How To Manage Groups on Linux
    5 Min Read
    How To Manage Log Files Using Logrotate In Linux
    7 Min Read
    The Easy Ways to Check File Size in Linux
    7 Min Read
    How To Backup Files From Remote Linux VPS Using Rsync Script
    12 Min Read
  • CentOS
    CentOSShow More
    How To Secure SSH with Fail2Ban on CentOS 7
    9 Min Read
    How To Install PHP 8.2 on CentOS 7 / RHEL 7
    18 Min Read
    How To Install Apache Web Server on CentOS 7
    11 Min Read
    How To Set Up a Firewall Using FirewallD on CentOS 7
    5 Min Read
    Initial Setup CentOS 7 Server: Secure and Efficient
    9 Min Read
  • DevOps
    DevOpsShow More
    How To Create AWS CloudFront: A Step-by-Step Guide
    10 Min Read
Reading: How To Install Apache Solr 9.1 on Debian 11
Share
Font ResizerAa
Linux for BeginnersLinux for Beginners
  • Ubuntu
  • Rocky Linux
  • Debian
  • Linux
  • CentOS
  • DevOps
Search
  • Ubuntu
  • Rocky Linux
  • Debian
  • Linux
  • CentOS
  • DevOps
Follow US
Copyright © 2014-2023 Ruby Theme Ltd. All Rights Reserved.

How To Install Apache Solr 9.1 on Debian 11

Samuel Siahaan
By Samuel Siahaan
Last updated: June 2, 2023
SHARE

Introduction

In the ever-evolving world of Search Engine Optimization (SEO), ensuring fast and accurate search capabilities on your website is crucial. Apache Solr, a robust and open-source search platform, has proven to be an effective tool in enhancing user experience and boosting SEO efforts. This article will walk you through a step-by-step process of installing Apache Solr 9.1 on Debian 11, empowering you to optimize your website’s search functionality.

Contents
IntroductionTable of ContentsKey Features SolrPrerequisites Install Solr 9.1 on Debian 11Installing Solr 9.1 on Debian 11Step 1: System UpdateStep 2: Install Required PackagesStep 3: Install Solr 9.1 on Debian 11Step 4: Manage Solr ServiceStep 5: Create First Solr Core (Collection)Step 6: Access Solr Admin PanelStep 7: Indexing DataStep 8: Integrate Solr with Your WebsiteStep 9: Monitor and OptimizeConclusion

Table of Contents

  • Introduction
  • Key Features Solr
  • Prerequisites Install Solr 9.1 on Debian 11
  • Installing Solr 9.1 on Debian 11
    • Step 1: System Update
    • Step 2: Install Required Packages
    • Step 3: Install Solr 9.1 on Debian 11
    • Step 4: Manage Solr Service
    • Step 5: Create First Solr Core (Collection)
    • Step 6: Access Solr Admin Panel
    • Step 7: Indexing Data
    • Step 8: Integrate Solr with Your Website
    • Step 9: Monitor and Optimize
  • Conclusion

Key Features Solr

Here are some key features and concepts related to Apache Solr:

  1. Full-Text Search: Solr supports full-text search, enabling you to search for keywords or phrases across large collections of documents or data. It provides advanced text analysis, tokenization, stemming, and ranking algorithms to improve search accuracy and relevance.
  2. Indexing and Document Management: Solr allows you to index structured and unstructured data, including documents, web pages, database records, and more. It provides flexible indexing options and powerful document management capabilities, including schema definition, field types, and dynamic fields.
  3. RESTful API: Solr provides a RESTful API, making it easy to interact with the search platform programmatically. You can send requests, perform queries, and manage indexes using HTTP methods and JSON/XML responses.

Apache Solr is widely adopted by organizations for its robust search capabilities, scalability, and flexibility. It is supported by a large and active community, which contributes to its ongoing development and provides resources for support and learning.

Prerequisites Install Solr 9.1 on Debian 11

Before we dive into the installation process, there is prerequisite you need to ensure are in place:

- Advertisement -
  • Debian 11 : Make sure you have a clean installation of Debian 11. To set this up, follow our guide Initial Setup Debian 11 Server: Secure and Efficient. You can deploy this on a physical machine or a virtual environment like VMware or VirtualBox.

Installing Solr 9.1 on Debian 11

Follow the next steps to install Solr 9.0 on your latest Debian Servers

Step 1: System Update

Before diving into the installation process, it’s essential to ensure your Debian 11 system is up-to-date. Open a terminal and run the following commands:

samm@solr:~$ sudo apt-get update
samm@solr:~$ sudo apt-get upgrade

Step 2: Install Required Packages

Apache Solr requires Java to run. Install OpenJDK 11, a recommended version, using the following command:

samm@solr:~$ sudo apt install default-jdk gnupg2 apt-transport-https wget -y

Check the installed java version

samm@solr:~$ java -version
openjdk version "11.0.16" 2022-07-19
OpenJDK Runtime Environment (build 11.0.16+8-post-Debian-1deb11u1)
OpenJDK 64-Bit Server VM (build 11.0.16+8-post-Debian-1deb11u1, mixed mode, sharing)

Step 3: Install Solr 9.1 on Debian 11

After successfully installing the required packages, proceed to navigate to the Apache Solr official download page to obtain the URL for the latest version. Once you’re there, in your terminal, employ ‘wget’ to initiate the download of the package.

- Advertisement -
samm@solr:~$ wget https://dlcdn.apache.org/solr/solr/9.1.0/solr-9.1.0.tgz

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

samm@solr:~$ tar xzf solr-9.1.0.tgz solr-9.1.0/bin/install_solr_service.sh --strip-components=2

samm@solr:~$ sudo bash ./install_solr_service.sh solr-9.1.0.tgz
id: ‘solr’: no such user
Creating new user: solr
Adding system user `solr' (UID 112) ...
Adding new group `solr' (GID 115) ...
Adding new user `solr' (UID 112) with group `solr' ...
Creating home directory `/var/solr' ...

Extracting solr-9.1.0.tgz to /opt
Installing symlink /opt/solr -> /opt/solr-9.1.0 ...
Installing /etc/init.d/solr script ...
Installing /etc/default/solr.in.sh ...

Service solr installed.
Customize Solr startup configuration in /etc/default/solr.in.sh

Step 4: Manage Solr Service

samm@solr:~$ sudo systemctl enable solr
samm@solr:~$ sudo systemctl start solr

samm@solr:~$ sudo systemctl status solr

● solr.service - LSB: Controls Apache Solr as a Service
     Loaded: loaded (/etc/init.d/solr; generated)
     Active: active (exited) since Sat 2022-12-24 16:41:06 WIB; 5s ago
       Docs: man:systemd-sysv-generator(8)
    Process: 5608 ExecStart=/etc/init.d/solr start (code=exited, status=0/SUCCESS)
        CPU: 6ms

Dec 24 16:41:01 solr systemd[1]: Starting LSB: Controls Apache Solr as a Service...
Dec 24 16:41:01 solr su[5610]: (to solr) root on none
Dec 24 16:41:01 solr su[5610]: pam_unix(su-l:session): session opened for user solr(uid=112) by (uid=0)
Dec 24 16:41:05 solr solr[5685]: Started Solr server on port 8983 (pid=5677). Happy searching!
Dec 24 16:41:06 solr systemd[1]: Started LSB: Controls Apache Solr as a Service.

Step 5: Create First Solr Core (Collection)

A core serves as a fundamental unit of Solr, encompassing both the configuration and data tailored for a specific index. Now, let’s proceed to create a core and name it ‘sammlinux’. Create the first collection in Apache Solr using the following command.

samm@solr:~$ sudo su - solr -c "/opt/solr/bin/solr create -c sammlinux"

Sample output:

- Advertisement -
Created new core 'sammlinux'

Step 6: Access Solr Admin Panel

By default, Solr runs on port 8983. Upon accessing the Solr port in your web browser, you’ll be directed to a Solr dashboard where you can explore its features and functionalities.

http://you-domain-solr:8983/
Install Apache Solr on Debian
Dashboard Apache Solr

Here, you can review the statistics of the collection you created in the previous steps, named ‘sammlinux’. To do this, simply click on the ‘Core Selector’ located in the left sidebar, and then choose the collection you’ve created.

Install Apache Solr on Debian
Core Apache Solr

Step 7: Indexing Data

To make the most of Solr’s search capabilities, you need to index your website’s data. Use Solr’s Data Import Handler (DIH) or APIs to populate the index.

Step 8: Integrate Solr with Your Website

Transitioning to the integration phase, connect Solr seamlessly with your website’s search functionality by utilizing either Solr’s RESTful APIs or the client libraries accessible in a range of programming languages.

Step 9: Monitor and Optimize

As you proceed, make sure to consistently monitor your Solr instance to maintain peak performance. Make effective use of Solr’s inherent metrics and monitoring tools. Additionally, contemplate the integration of caching mechanisms and query optimization strategies to enhance search speed.

Conclusion

Incorporating Apache Solr 9.1 into your Debian 11 environment can significantly enhance your website’s search functionality. By following this comprehensive guide, you’ve successfully installed, configured, and integrated Solr, empowering you to take control of your website’s search capabilities. Stay proactive in monitoring and optimizing your Solr instance to reap the full benefits of this powerful search platform.

Congratulations! you have successfully installed Apache Solr on Debian 11. You can now create your own search application using Apache Solr. For more information, visit the Apache Solr documentation.

Also Read Our Other Guides :

  • How To Install MySQL 8.0 on Debian 11
  • How To Install and Config Thumbor on Debian 10
  • How To Install Redis on Debian 11 Server
  • How To Install and Setup Node.js on Debian 11

Finally, now you have learned how to install Apache Solr 9.1 on Debian 11.

TAGGED:ApacheApplicationDebianSearchSearch EngineSolr

Sign Up For Daily Newsletter

Be keep up! Get the latest breaking news delivered straight to your inbox.
[mc4wp_form]
By signing up, you agree to our Terms of Use and acknowledge the data practices in our Privacy Policy. You may unsubscribe at any time.
Share This Article
Facebook Copy Link Print
Previous Article How To Install Redis on Debian 11 Server
Next Article How To Install MariaDB 10.6 on Ubuntu Server 22.04
Leave a Comment

Leave a Reply Cancel reply

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

How To Install and Secure phpMyAdmin on Ubuntu 22.04
Ubuntu
Install and Configure Docker Swarm Mode on Centos 7
CentOS
How To Install and Config Thumbor on Debian 10
Debian
How To Install MariaDB 10.6 on Debian 11 Server
Debian
How To Install MongoDB 6.0 on Debian 10 & 11
Debian

You Might Also Like

Ubuntu

How To Install and Use TeamViewer on Ubuntu 22.04

9 Min Read
CentOS

How To Install Apache Web Server on CentOS 7

11 Min Read
Debian

How To Install Debian 12 (Bookworm) Server with Screenshots

13 Min Read
Rocky Linux

How To Install Varnish Cache for Nginx on Rocky Linux 9

14 Min Read
Debian

How To Install PHP 7.4 on Debian 11

14 Min Read
Ubuntu

How To Install Snipe-IT Asset Management on Ubuntu 22.04

13 Min Read
Ubuntu

How To Install Uptime Kuma on Ubuntu 22.04

17 Min Read
CentOS

How To Install RTMP Server with Nginx on CentOS 7

14 Min Read
Show More

Always Stay Up to Date

Subscribe to our newsletter to get our newest articles instantly!

sammlinux sammlinux

Providing beginner-friendly Linux tutorials and open-source guides to simplify your digital infrastructure.

www.sammlinux.com © 2026 | All Rights Reserved

Join Us!
Subscribe to our newsletter and never miss our latest news, podcasts etc.

Subscribe to our newsletter to get our newest articles instantly!

Zero spam, Unsubscribe at any time.
Welcome Back!

Sign in to your account

Username or Email Address
Password

Lost your password?