• About Us
  • Disclaimers
  • Privacy Policy
  • Sitemap
Linux Tutorials for Beginners
Advertisement
  • Ubuntu
    Install and Secure phpMyAdmin on Ubuntu 22.04

    How To Install and Secure phpMyAdmin on Ubuntu 22.04

    Secure SSH with Fail2Ban

    How To Secure SSH with Fail2Ban on Ubuntu 22.04

    Install Uptime Kuma on Ubuntu 22.04

    How To Install Uptime Kuma on Ubuntu 22.04

    Install Ubuntu Server 22.04

    How To Install Ubuntu Server 22.04 LTS with Screenshots

    Set Up Firewall on Ubuntu 22.04

    How To Set Up a Firewall with UFW on Ubuntu 22.04

    Install Nginx on Ubuntu

    How To Install Nginx on Ubuntu 22.04: A Comprehensive Guide

    Install MySQL 8.0 on Ubuntu 22.04

    How To Install MySQL 8.0 on Ubuntu Server 22.04

    install-php74-ubuntu2204

    How To Install PHP 7.4 on Ubuntu 22.04

    Install Snipe-IT on Ubuntu 22.04

    How To Install Snipe-IT Asset Management on Ubuntu 22.04

  • Debian
    Secure SSH with Fail2Ban

    How To Secure SSH with Fail2Ban on Debian 11

    Install Debian 11 Server

    How To Install Debian 11 (Bullseye) Server with Pictures

    Install and Setup Node.js on Debian 11

    How To Install and Setup Node.js on Debian 11

    Install PHP 8.2 on Debian 11

    How To Install PHP 8.2 on Debian 11

    Install Nginx on Debian 11

    How To Install Nginx on Debian 11: A Comprehensive Guide

    Set Up Firewall with UFW on Debian

    How To Set Up a Firewall with UFW on Debian 11

    install php74 on debian 11

    How To Install PHP 7.4 on Debian 11

    Install MariaDB 10.9 on Debian 11

    How To Install MariaDB 10.9 on Debian 11 Server

    Initial Setup Debian Server

    Initial Setup Debian 11 Server: Secure and Efficient

  • Rocky Linux
    Install phpMyAdmin on Rocky Linux 9

    How To Install phpMyAdmin on Rocky Linux 9

    Secure SSH with Fail2Ban

    How To Secure SSH with Fail2Ban on Rocky Linux 9

    Install Rocky Linux 9.2 Server

    How To Install Rocky Linux 9.2 Server with Screenshots

    setup Firewall Using Firewalld Rocky Linux 9

    How To Set Up a Firewall Using FirewallD on Rocky Linux 9

    Install Nginx on Rocky Linux 9

    How To Install Nginx on Rocky Linux 9: A Comprehensive Guide

    Install Apache on Rocky Linux

    How To Install and Configure Apache on Rocky Linux 9

    Install MongoDB on Rocky Linux 9

    How To Install MongoDB 6.0 on Rocky Linux 9

    Install Docker on Rocky Linux

    How To Install Docker CE on Rocky Linux 9

  • CentOS
    Secure SSH with Fail2Ban

    How To Secure SSH with Fail2Ban on CentOS 7

    Install PHP8.2 on CentOS 7

    How To Install PHP 8.2 on CentOS 7 / RHEL 7

    Install Apache on CentOS 7

    How To Install Apache Web Server on CentOS 7

    Set Up FirewallD on CentOS 7

    How To Set Up a Firewall Using FirewallD on CentOS 7

    Initial Setup CentOS 7 Server

    Initial Setup CentOS 7 Server: Secure and Efficient

    Install Nginx on CentOS 7

    How To Install Nginx on CentOS 7: A Comprehensive Guide

    Build NGINX from Source on Centos 7

    How To Build NGINX from Source (Compile) on Centos7

    Install Docker Swarm on CentOS 7

    Install and Configure Docker Swarm Mode on Centos 7

    Install Docker Compose on Centos 7

    How To Install and Use Docker Compose on Centos 7

  • Linux
    Manage Groups on Linux

    A Simple Guide: How To Manage Groups on Linux

    Logrotate In Linux

    How To Manage Log Files Using Logrotate In Linux

    Check File Size in Linux

    The Easy Ways to Check File Size in Linux

    Linux server security system administrators

    Best Practices Linux Server Security for System Administrator

    Backup Files From Remote Linux VPS Using Rsync Script

    How To Backup Files From Remote Linux VPS Using Rsync Script

    SSH Key-based Authentication

    How To Configure SSH Key-based Authentication In Linux

    Linux File Permissions

    Understanding Linux File Permissions for Beginners

    Create Multiboot USB with Ventoy

    How To Create Multiboot USB with Ventoy in Linux

    Find Hard Disk Drive Information in Linux

    How To Find Hard Disk Drive Information in Linux

No Result
View All Result
Linux Tutorials for Beginners
  • Ubuntu
    Install and Secure phpMyAdmin on Ubuntu 22.04

    How To Install and Secure phpMyAdmin on Ubuntu 22.04

    Secure SSH with Fail2Ban

    How To Secure SSH with Fail2Ban on Ubuntu 22.04

    Install Uptime Kuma on Ubuntu 22.04

    How To Install Uptime Kuma on Ubuntu 22.04

    Install Ubuntu Server 22.04

    How To Install Ubuntu Server 22.04 LTS with Screenshots

    Set Up Firewall on Ubuntu 22.04

    How To Set Up a Firewall with UFW on Ubuntu 22.04

    Install Nginx on Ubuntu

    How To Install Nginx on Ubuntu 22.04: A Comprehensive Guide

    Install MySQL 8.0 on Ubuntu 22.04

    How To Install MySQL 8.0 on Ubuntu Server 22.04

    install-php74-ubuntu2204

    How To Install PHP 7.4 on Ubuntu 22.04

    Install Snipe-IT on Ubuntu 22.04

    How To Install Snipe-IT Asset Management on Ubuntu 22.04

  • Debian
    Secure SSH with Fail2Ban

    How To Secure SSH with Fail2Ban on Debian 11

    Install Debian 11 Server

    How To Install Debian 11 (Bullseye) Server with Pictures

    Install and Setup Node.js on Debian 11

    How To Install and Setup Node.js on Debian 11

    Install PHP 8.2 on Debian 11

    How To Install PHP 8.2 on Debian 11

    Install Nginx on Debian 11

    How To Install Nginx on Debian 11: A Comprehensive Guide

    Set Up Firewall with UFW on Debian

    How To Set Up a Firewall with UFW on Debian 11

    install php74 on debian 11

    How To Install PHP 7.4 on Debian 11

    Install MariaDB 10.9 on Debian 11

    How To Install MariaDB 10.9 on Debian 11 Server

    Initial Setup Debian Server

    Initial Setup Debian 11 Server: Secure and Efficient

  • Rocky Linux
    Install phpMyAdmin on Rocky Linux 9

    How To Install phpMyAdmin on Rocky Linux 9

    Secure SSH with Fail2Ban

    How To Secure SSH with Fail2Ban on Rocky Linux 9

    Install Rocky Linux 9.2 Server

    How To Install Rocky Linux 9.2 Server with Screenshots

    setup Firewall Using Firewalld Rocky Linux 9

    How To Set Up a Firewall Using FirewallD on Rocky Linux 9

    Install Nginx on Rocky Linux 9

    How To Install Nginx on Rocky Linux 9: A Comprehensive Guide

    Install Apache on Rocky Linux

    How To Install and Configure Apache on Rocky Linux 9

    Install MongoDB on Rocky Linux 9

    How To Install MongoDB 6.0 on Rocky Linux 9

    Install Docker on Rocky Linux

    How To Install Docker CE on Rocky Linux 9

  • CentOS
    Secure SSH with Fail2Ban

    How To Secure SSH with Fail2Ban on CentOS 7

    Install PHP8.2 on CentOS 7

    How To Install PHP 8.2 on CentOS 7 / RHEL 7

    Install Apache on CentOS 7

    How To Install Apache Web Server on CentOS 7

    Set Up FirewallD on CentOS 7

    How To Set Up a Firewall Using FirewallD on CentOS 7

    Initial Setup CentOS 7 Server

    Initial Setup CentOS 7 Server: Secure and Efficient

    Install Nginx on CentOS 7

    How To Install Nginx on CentOS 7: A Comprehensive Guide

    Build NGINX from Source on Centos 7

    How To Build NGINX from Source (Compile) on Centos7

    Install Docker Swarm on CentOS 7

    Install and Configure Docker Swarm Mode on Centos 7

    Install Docker Compose on Centos 7

    How To Install and Use Docker Compose on Centos 7

  • Linux
    Manage Groups on Linux

    A Simple Guide: How To Manage Groups on Linux

    Logrotate In Linux

    How To Manage Log Files Using Logrotate In Linux

    Check File Size in Linux

    The Easy Ways to Check File Size in Linux

    Linux server security system administrators

    Best Practices Linux Server Security for System Administrator

    Backup Files From Remote Linux VPS Using Rsync Script

    How To Backup Files From Remote Linux VPS Using Rsync Script

    SSH Key-based Authentication

    How To Configure SSH Key-based Authentication In Linux

    Linux File Permissions

    Understanding Linux File Permissions for Beginners

    Create Multiboot USB with Ventoy

    How To Create Multiboot USB with Ventoy in Linux

    Find Hard Disk Drive Information in Linux

    How To Find Hard Disk Drive Information in Linux

No Result
View All Result
Linux Tutorials for Beginners
No Result
View All Result

Home » Debian » How To Install Apache Solr 9.1 on Debian 11

How To Install Apache Solr 9.1 on Debian 11

sammbysamm
October 16, 2023
Install Apache Solr on Debian

How To Install Apache Solr 9.0 on Debian 11

Share on FacebookShare on LinkedinShare on Whatsapp

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.

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:

OTHER POSTS

How To Secure SSH with Fail2Ban on Debian 11

How To Install Debian 11 (Bullseye) Server with Pictures

How To Install and Setup Node.js on Debian 11

  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:

  • 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.

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:

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.

Tags: ApacheApplicationDebianSearchSearch EngineSolr

If you got help by our tutorials, please buy me a coffee..!

Buy Me a Coffee

Thank you so much for your support!!

Previous Post

How To Install Redis on Debian 11 Server

Next Post

How To Install MariaDB 10.6 on Ubuntu Server 22.04

Leave a Reply Cancel reply

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

RECENT POST

Install and Secure phpMyAdmin on Ubuntu 22.04

How To Install and Secure phpMyAdmin on Ubuntu 22.04

by samm
July 22, 2024
0

Are you ready to take control of your MySQL databases on Ubuntu 22.04? In this step-by-step guide, we'll walk you...

Manage Groups on Linux

A Simple Guide: How To Manage Groups on Linux

by samm
November 12, 2023
0

Are you a Linux enthusiast looking to enhance your system administration skills? One fundamental aspect you should master is how...

Install phpMyAdmin on Rocky Linux 9

How To Install phpMyAdmin on Rocky Linux 9

by samm
November 11, 2023
0

If you're navigating the world of Rocky Linux 9 and looking to streamline your MariaDB or MySQL database management, installing...

Logrotate In Linux

How To Manage Log Files Using Logrotate In Linux

by samm
November 10, 2023
0

Log files are an essential part of any Linux system. They provide valuable insights into the system's activities, helping administrators...

Load More

RECOMMENDED.

Install Redis on Debian

How To Install Redis on Debian 11 Server

October 16, 2023
Secure SSH with Fail2Ban

How To Secure SSH with Fail2Ban on Rocky Linux 9

October 29, 2023
sammlinux sammlinux sammlinux

Related Posts

Secure SSH with Fail2Ban
Debian

How To Secure SSH with Fail2Ban on Debian 11

October 29, 2023
Install Debian 11 Server
Debian

How To Install Debian 11 (Bullseye) Server with Pictures

October 20, 2023
Install and Setup Node.js on Debian 11
Debian

How To Install and Setup Node.js on Debian 11

October 17, 2023
Install PHP 8.2 on Debian 11
Debian

How To Install PHP 8.2 on Debian 11

October 17, 2023
Load More
Next Post
Install MariaDB on Ubuntu

How To Install MariaDB 10.6 on Ubuntu Server 22.04

  • About Us
  • Disclaimers
  • Privacy Policy
  • Sitemap

© 2023 sammlinux - Learn Today for Lead Tomorrow.

No Result
View All Result
  • Ubuntu
  • Debian
  • Rocky Linux
  • CentOS
  • Linux

© 2023 sammlinux - Learn Today for Lead Tomorrow.