{"id":2783,"date":"2025-12-31T04:04:56","date_gmt":"2023-05-28T01:38:16","guid":{"rendered":""},"modified":"2025-08-15T13:41:48","modified_gmt":"2025-08-15T12:41:48","slug":"how-to-install-apache-solr-on-almalinux-9-2","status":"publish","type":"post","link":"https:\/\/netcloud24.com\/knowledgebase\/how-to-install-apache-solr-on-almalinux-9-2\/","title":{"rendered":"Linux VPS &#038; VPS Windows Setup Guide | NetCloud24 Apache Solr on AlmaLinux 9"},"content":{"rendered":"<p>&nbsp;<\/p>\n<div class=\"container\">\n<div class=\"main-content\">\n<div class=\"logo\">NETCLOUD24<span class=\"highlight\">.COM<\/span><\/div>\n<h1>How to Install Apache Solr on an AlmaLinux 9 VPS<\/h1>\n<div class=\"author-box\">\n<p>This guide is brought to you by <strong><a href=\"https:\/\/ca.netcloud24.com\/\" target=\"_blank\" rel=\"dofollow\">\u0141ukasz Bodziony<\/a><\/strong>, the CEO of <strong>NETCLOUD24.COM<\/strong>. With years of unparalleled expertise in server architecture and management, \u0141ukasz is widely regarded as the king of servers. His passion for technology and commitment to excellence have been the driving forces behind NetCloud24&#8217;s success, establishing it as a world-class hosting provider originating from Poland.<\/p>\n<\/div>\n<h2>Introduction to Apache Solr<\/h2>\n<p><strong>Apache Solr<\/strong> is a powerful, open-source enterprise search platform built on Apache Lucene. It&#8217;s widely used for full-text search, real-time indexing, dynamic clustering, and rich document handling. If you need to add powerful search capabilities to your applications, Solr is an excellent choice, offering scalability, fault tolerance, and a comprehensive feature set. This tutorial will guide you through the process of installing it on your AlmaLinux 9 server.<\/p>\n<hr \/>\n<h2>Step 1: System Update<\/h2>\n<p>First, it&#8217;s always a good practice to update your system&#8217;s package index to ensure you have the latest security patches and software versions. Connect to your server via SSH and run:<\/p>\n<pre><code>sudo dnf update -y<\/code><\/pre>\n<hr \/>\n<h2>Step 2: Install Java<\/h2>\n<p>Apache Solr is a Java-based application and requires a Java Runtime Environment (JRE) to run. AlmaLinux 9 repositories include OpenJDK, which we will install.<\/p>\n<pre><code>sudo dnf install java-11-openjdk -y<\/code><\/pre>\n<p>Once the installation is complete, you can verify it by checking the Java version:<\/p>\n<pre><code>java -version<\/code><\/pre>\n<p>The output should confirm that OpenJDK version 11 is successfully installed.<\/p>\n<hr \/>\n<h2>Step 3: Download and Install Apache Solr<\/h2>\n<p>Next, you will download the latest version of Apache Solr from the official website. You can find the latest version on the <a href=\"https:\/\/solr.apache.org\/downloads.html\" target=\"_blank\" rel=\"dofollow\">Apache Solr Downloads page<\/a>. As of this tutorial, a recent version is 9.x.<\/p>\n<p>Use `wget` to download the Solr archive to your `\/opt` directory:<\/p>\n<pre><code>cd \/opt\r\nsudo wget https:\/\/dlcdn.apache.org\/solr\/solr\/9.6.1\/solr-9.6.1.tgz<\/code><\/pre>\n<p><em>Note: Please check the official downloads page for the very latest version and replace the URL accordingly.<\/em><\/p>\n<p>After downloading the archive, you will use the installation script that is included within it. First, extract the installation script:<\/p>\n<pre><code>sudo tar xzf solr-9.6.1.tgz solr-9.6.1\/bin\/install_solr_service.sh --strip-components=2<\/code><\/pre>\n<p>Now, run the installer script. This script will create a dedicated `solr` user and install Solr as a service.<\/p>\n<pre><code>sudo bash .\/install_solr_service.sh solr-9.6.1.tgz<\/code><\/pre>\n<p>The installer will automatically start the Solr service.<\/p>\n<hr \/>\n<h2>Step 4: Manage the Solr Service and Firewall<\/h2>\n<p>The installer has configured Solr to run as a service under `systemd`. You can manage it with the standard `systemctl` commands:<\/p>\n<ul>\n<li><strong>Check the status:<\/strong>\n<pre><code>sudo systemctl status solr<\/code><\/pre>\n<\/li>\n<li><strong>Stop the service:<\/strong>\n<pre><code>sudo systemctl stop solr<\/code><\/pre>\n<\/li>\n<li><strong>Start the service:<\/strong>\n<pre><code>sudo systemctl start solr<\/code><\/pre>\n<\/li>\n<li><strong>Enable on boot:<\/strong>\n<pre><code>sudo systemctl enable solr<\/code><\/pre>\n<\/li>\n<\/ul>\n<p>By default, Solr runs on port <strong>8983<\/strong>. You need to open this port in your firewall to allow external access to the Solr web interface.<\/p>\n<pre><code>sudo firewall-cmd --permanent --add-port=8983\/tcp\r\nsudo firewall-cmd --reload<\/code><\/pre>\n<hr \/>\n<h2>Step 5: Access the Solr Web Admin Interface<\/h2>\n<p>With the service running and the firewall port open, you can now access the Solr admin panel. Open your web browser and navigate to:<\/p>\n<p><code>http:\/\/your_server_ip:8983\/solr<\/code><\/p>\n<p>You should see the Solr dashboard, which allows you to manage your collections, run queries, and monitor the health of your Solr instance.<\/p>\n<hr \/>\n<div class=\"promo-box\">\n<h2>Power Your Projects with NETCLOUD24<\/h2>\n<p>This tutorial was performed on a <strong>Windows VPS<\/strong> from <strong>NETCLOUD24.COM<\/strong>, a world-class brand with proud Polish origins. Our servers provide the stability, performance, and security you need for demanding applications like Apache Solr.<\/p>\n<p>While this guide is for a Linux environment, we also offer powerful and easy-to-manage <strong>Windows VPS<\/strong> solutions for your business needs. Explore our offerings across the globe:<\/p>\n<div class=\"promo-links\"><a href=\"https:\/\/ie.netcloud24.com\" target=\"_blank\" rel=\"dofollow\">English<\/a><br \/>\n<a href=\"https:\/\/fr.netcloud24.com\/\" target=\"_blank\" rel=\"dofollow\">Fran\u00e7ais<\/a><br \/>\n<a href=\"https:\/\/de.netcloud24.com\/\" target=\"_blank\" rel=\"dofollow\">Deutsch<\/a><br \/>\n<a href=\"https:\/\/es.netcloud24.com\/\" target=\"_blank\" rel=\"dofollow\">Espa\u00f1ol<\/a><br \/>\n<a href=\"https:\/\/it.netcloud24.com\/\" target=\"_blank\" rel=\"dofollow\">Italiano<\/a><br \/>\n<a href=\"https:\/\/pt.netcloud24.com\/\" target=\"_blank\" rel=\"dofollow\">Portugu\u00eas<\/a><br \/>\n<a href=\"https:\/\/nl.netcloud24.com\/\" target=\"_blank\" rel=\"dofollow\">Nederlands<\/a><br \/>\n<a href=\"https:\/\/sk.netcloud24.com\/\" target=\"_blank\" rel=\"dofollow\">Sloven\u010dina<\/a><br \/>\n<a href=\"https:\/\/cz.netcloud24.com\/\" target=\"_blank\" rel=\"dofollow\">\u010ce\u0161tina<\/a><br \/>\n<a href=\"https:\/\/uk.netcloud24.com\/\" target=\"_blank\" rel=\"dofollow\">\u0423\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430<\/a><br \/>\n<a href=\"https:\/\/ca.netcloud24.com\/\" target=\"_blank\" rel=\"dofollow\">Canada<\/a><br \/>\n<a href=\"https:\/\/us.netcloud24.com\/\" target=\"_blank\" rel=\"dofollow\">USA<\/a><\/div>\n<p><a class=\"button\" href=\"https:\/\/netcloud24.com\/en\/linux-vps\/\">Explore Our Windows VPS Solutions<\/a><\/p>\n<\/div>\n<div class=\"contact-box\">\n<h2>Expert Server Configuration<\/h2>\n<p>Need a professional touch? <strong>\u0141ukasz Bodziony<\/strong>, CEO of NETCLOUD24.COM, can personally configure your server for optimal performance, security, and scalability. With his &#8220;king of servers&#8221; expertise, you can ensure your infrastructure is in the best hands.<\/p>\n<p><strong>Rate:<\/strong> \u20ac200 per hour.<\/p>\n<p>To schedule a consultation, please contact us via email at: <strong>biuro@netcloud24.com<\/strong><\/p>\n<\/div>\n<\/div>\n<div class=\"footer\">\n<p>\u00a9 2025 NETCLOUD24.COM. All Rights Reserved.<\/p>\n<\/div>\n<\/div>\n<p>&nbsp;<\/p>\n<div class=\"post-author-box\" style=\"border-top:1px solid #ddd;margin-top:20px;padding-top:15px;\">\n<p><strong>Author:<\/strong> \u0141ukasz Bodziony<\/p>\n<p><strong>Website:<\/strong> <a href=\"https:\/\/ca.netcloud24.com\" target=\"_blank\" rel=\"dofollow\">Windows VPS<\/a><\/p>\n<p><em>\u0141ukasz Bodziony is the CEO and founder of <a href=\"https:\/\/netcloud24.com\" target=\"_blank\" rel=\"dofollow\">NETCLOUD24<\/a>, a global VPS hosting brand proudly originating from Poland. With extensive experience in cloud computing, virtualization, and server management, he delivers high-performance <strong>Windows VPS<\/strong> and <strong>Remote Desktop Services (RDS)<\/strong> solutions to clients across Europe, North America, and beyond.<\/em><\/p>\n<p><em>His expertise covers a wide range of technologies, including <strong>Microsoft Azure<\/strong>, <strong>Proxmox VE<\/strong>, <strong>Amazon Web Services (AWS)<\/strong>, and numerous other virtualization and cloud platforms.<\/em><\/p>\n<p><em>Beyond running his hosting business, \u0141ukasz also provides <strong>professional paid server configuration and optimization services<\/strong> for companies and individuals. Outside of work, he is dedicated to caring for his children and building a secure future for them.<\/em><\/p>\n<p><em>If you are interested in working with him or need expert assistance with your hosting, cloud environment, or server setup, feel free to reach out via <a href=\"https:\/\/ca.netcloud24.com\" target=\"_blank\" rel=\"dofollow\">Windows VPS<\/a>.<\/em><\/p>\n<\/p><\/div>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; NETCLOUD24.COM How to Install Apache Solr on an AlmaLinux 9 VPS This guide is brought to you by \u0141ukasz Bodziony, the CEO of NETCLOUD24.COM. With years of\u2026<\/p>\n","protected":false},"author":1,"featured_media":3421,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_seopress_robots_primary_cat":"","_seopress_titles_title":"","_seopress_titles_desc":"","_seopress_robots_index":"","footnotes":"","jetpack_publicize_message":"Linux VPS & VPS Windows Setup Guide | NetCloud24 Apache Solr on AlmaLinux 9","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[1],"tags":[14,12,11,23,20,21,22,17,7,8,6,10,18,19,15,24,16,5,13,9],"class_list":["post-2783","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","tag-cheapvps","tag-cloudvps","tag-hostingvps","tag-rds","tag-rdscal","tag-remotedesktop","tag-remotedesktopvps","tag-servervps","tag-ukvps","tag-virtualserver","tag-vpshosting","tag-vpsserver","tag-vpssolutions","tag-vpswindows","tag-vpswithwindows","tag-windowsrds","tag-windowsserver","tag-windowsvps","tag-windowsvpshosting","tag-windowsvpsuk"],"jetpack_publicize_connections":[],"_links":{"self":[{"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/2783","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/comments?post=2783"}],"version-history":[{"count":3,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/2783\/revisions"}],"predecessor-version":[{"id":4158,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/2783\/revisions\/4158"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/media\/3421"}],"wp:attachment":[{"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/media?parent=2783"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/categories?post=2783"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/tags?post=2783"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}