{"id":45369,"date":"2023-06-05T12:30:00","date_gmt":"2023-06-05T17:30:00","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=45369"},"modified":"2025-07-02T05:57:46","modified_gmt":"2025-07-02T10:57:46","slug":"how-to-install-and-set-up-elasticsearch-on-debian-11","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-install-and-set-up-elasticsearch-on-debian-11\/","title":{"rendered":"How to Install and Set Up Elasticsearch on Debian 11"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"742\" height=\"372\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/05\/how-to-install-and-set-up-elasticsearch-on-debian-11.webp\" alt=\"how to install and set up elasticsearch on debian 11\" class=\"wp-image-45788\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/05\/how-to-install-and-set-up-elasticsearch-on-debian-11.webp 742w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/05\/how-to-install-and-set-up-elasticsearch-on-debian-11-300x150.webp 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/05\/how-to-install-and-set-up-elasticsearch-on-debian-11-150x75.webp 150w\" sizes=\"(max-width: 742px) 100vw, 742px\" \/><\/figure>\n<\/div>\n\n\n<p><\/p>\n\n\n\n<p>Elasticsearch is a distributed, free and open search and analytics engine for all types of data, including textual, numerical, geospatial, structured, and unstructured. <\/p>\n\n\n\n<!--more-->\n\n\n\n<p>Since its initial release in 2010, Elasticsearch, built on Apache Lucene, has become the most popular search engine commonly used for log analytics, full-text search, etc. <\/p>\n\n\n\n<p>In this article, we will show you how to install and <a href=\"https:\/\/www.rosehosting.com\/elasticsearch-hosting\/\">set up Elasticsearch<\/a> on Debian 11.<\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-transparent ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-69e736f24271e\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"ez-toc-cssicon\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69e736f24271e\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-and-set-up-elasticsearch-on-debian-11\/#Prerequisites\" >Prerequisites<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-and-set-up-elasticsearch-on-debian-11\/#Step-1-Update-the-System\" >Step 1. Update the System<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-and-set-up-elasticsearch-on-debian-11\/#Step-2-Install-Dependencies\" >Step 2. Install Dependencies<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-and-set-up-elasticsearch-on-debian-11\/#Step-3-Install-Java\" >Step 3. Install Java<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-and-set-up-elasticsearch-on-debian-11\/#Step-4-Add-Elasticsearch-Repository\" >Step 4. Add Elasticsearch Repository<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-and-set-up-elasticsearch-on-debian-11\/#Step-5-Install-Elasticsearch\" >Step 5. Install Elasticsearch<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-and-set-up-elasticsearch-on-debian-11\/#Step-6-Configure-Elasticsearch\" >Step 6. Configure Elasticsearch<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\" id=\"h-prerequisites\"><span class=\"ez-toc-section\" id=\"Prerequisites\"><\/span>Prerequisites<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>A Debian 11 VPS with at least 4GB of RAM<\/li>\n\n\n\n<li>SSH access with sudo privileges or root access.<\/li>\n<\/ul>\n\n\n\n<p>In addition, it is recommended to have at least 2GB of SWAP memory, even if you have enough available RAM.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-step-1-update-the-system\"><span class=\"ez-toc-section\" id=\"Step-1-Update-the-System\"><\/span>Step 1. Update the System<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>First of all, we need to log in to our Debian 11 VPS through SSH:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">ssh root@IP_Address -p Port_number<\/pre>\n\n\n\n<p>Replace &#8220;root&#8221; with a user with sudo privileges or root if necessary. Additionally, replace &#8220;IP_Address&#8221; and &#8220;Port_Number&#8221; with your server&#8217;s respective IP address and SSH port number. Next, let&#8217;s make sure that we&#8217;re on Debian 11. You can do that like this:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># lsb_release -a<\/pre>\n\n\n\n<p>You should get an output like this one:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Distributor ID: Debian\nDescription: Debian GNU\/Linux 11 (bulleseye)\nRelease: 11\nCodename: bullseye<\/pre>\n\n\n\n<p>Then, run the following command to make sure that all installed packages on the server are updated to their latest available versions:<\/p>\n\n\n\n<p># apt update &amp;&amp; apt upgrade<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-step-2-install-dependencies\"><span class=\"ez-toc-section\" id=\"Step-2-Install-Dependencies\"><\/span>Step 2. Install Dependencies<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>There are some dependencies you would need to install before proceeding with the next steps.<\/p>\n\n\n\n<p># apt install gnupg wget apt-transport-https<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-step-3-install-java\"><span class=\"ez-toc-section\" id=\"Step-3-Install-Java\"><\/span>Step 3. Install Java<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>To <a href=\"https:\/\/www.elastic.co\/\">run Elasticsearch<\/a>, we need Java. Let&#8217;s install it from the default Debian 11 repository.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># apt install default-jre<\/pre>\n\n\n\n<p>Debian 11 ships with Java 11 by default; it can be verified by running this command below.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># java --version<\/pre>\n\n\n\n<p>You will get an output like this:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">openjdk 11.0.18 2023-01-17\nOpenJDK Runtime Environment (build 11.0.18+10-post-Debian-1deb11u1)\nOpenJDK 64-Bit Server VM (build 11.0.18+10-post-Debian-1deb11u1, mixed mode, sharing)<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-step-4-add-elasticsearch-repository\"><span class=\"ez-toc-section\" id=\"Step-4-Add-Elasticsearch-Repository\"><\/span>Step 4. Add Elasticsearch Repository<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>To ensure the download source is secure and from the official source, we need to import the GPG key by downloading it using wget.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># wget -qO - https:\/\/artifacts.elastic.co\/GPG-KEY-elasticsearch | gpg --dearmor | tee \/usr\/share\/keyrings\/elasticsearch.gpg<\/pre>\n\n\n\n<p>Debian 11 does not ship with a package for Elasticsearch. Fortunately, the Elasticsearch developer team has provided its own repository packages for Debian. We can add the Elasticsearch repository by executing the command below.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># echo \"deb [signed-by=\/usr\/share\/keyrings\/elasticsearch.gpg] https:\/\/artifacts.elastic.co\/packages\/8.x\/apt stable main\" | tee \/etc\/apt\/sources.list.d\/elastic-8.list<\/pre>\n\n\n\n<p>To refresh the system packages index and update the list of available packages after adding a new repository, we should run apt update.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># apt update -y<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-step-5-install-elasticsearch\"><span class=\"ez-toc-section\" id=\"Step-5-Install-Elasticsearch\"><\/span>Step 5. Install Elasticsearch<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>We added the Elasticsearch repository in the previous step, and the package metadata list has also been updated. We can now install Elasticsearch by invoking this command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># apt install elasticsearch<\/pre>\n\n\n\n<p>On the Debian 11 system, once Elasticsearch is installed, it is not automatically running. Execute the following command to run Elasticsearch and enable it on boot.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># systemctl enable --now elasticsearch<\/pre>\n\n\n\n<p>That&#8217;s it, Elasticsearch is now running, and you can verify with this command<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># systemctl status elasticsearch<\/pre>\n\n\n\n<p>It will return an output like this:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\u25cf elasticsearch.service - Elasticsearch\nLoaded: loaded (\/lib\/systemd\/system\/elasticsearch.service; enabled; vendor preset: enabled)\nActive: active (running) since Tue 2023-04-18 08:59:54 EDT; 1min 14s ago\nDocs: https:\/\/www.elastic.co\nMain PID: 8236 (java)\nTasks: 71 (limit: 2294)\nMemory: 1.3G\nCPU: 44.403s\nCGroup: \/system.slice\/elasticsearch.service\n\u251c\u25008236 \/usr\/share\/elasticsearch\/jdk\/bin\/java -Xms4m -Xmx64m -XX:+UseSerialGC -Dcli.name=server -Dcli.script=\/usr\/share\/elasticsearch\/bin\/elasticsearch -Dcli.libs=lib\/tools&gt;\n\u251c\u25008295 \/usr\/share\/elasticsearch\/jdk\/bin\/java -Des.networkaddress.cache.ttl=60 -Des.networkaddress.cache.negative.ttl=10 -Djava.security.manager=allow -XX:+AlwaysPreTouch -&gt;\n\u2514\u25008315 \/usr\/share\/elasticsearch\/modules\/x-pack-ml\/platform\/linux-x86_64\/bin\/controller\n\nApr 18 08:59:13 debian11 systemd[1]: Starting Elasticsearch...\nApr 18 08:59:54 debian11 systemd[1]: Started Elasticsearch.<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-step-6-configure-elasticsearch\"><span class=\"ez-toc-section\" id=\"Step-6-Configure-Elasticsearch\"><\/span>Step 6. Configure Elasticsearch<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>There are some configurations you can modify. But, first of all, we will reset the &#8216;elastic&#8217; user password. To proceed with this, we can disable the cluster if it&#8217;s not used.<\/p>\n\n\n\n<p>comment this line &#8220;<strong>cluster.initial_master_nodes: [&#8220;YOURHOSTNAME&#8221;<\/strong>]&#8221; then add this line: <strong>discovery.type: single-node<\/strong><\/p>\n\n\n\n<p>It should look like this:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">#cluster.initial_master_nodes: [\"debian11\"]\ndiscovery.type: single-node<\/pre>\n\n\n\n<p>And restart Elasticsearch<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># systemctl restart elasticsearch<\/pre>\n\n\n\n<p>Next, let&#8217;s reset Elastic&#8217;s password.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># \/usr\/share\/elasticsearch\/bin\/elasticsearch-reset-password -u elastic<\/pre>\n\n\n\n<p>The command above will prompt you that it will print the new password in the console; press Y to continue.<\/p>\n\n\n\n<p>It returns this output:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">This tool will reset the password of the [elastic] user to an autogenerated value.\nThe password will be printed in the console.\nPlease confirm that you would like to continue [y\/N]y<\/pre>\n\n\n\n<p>After pressing Y, it will print you the new password and save it.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Password for the [elastic] user successfully reset.\nNew value: taSSapenu32gkAS0098B<\/pre>\n\n\n\n<p>With the new password, we can run this command to check its connection to Elasticsearch.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># curl -u \"elastic:taSSapenu32gkAS0098B\" https:\/\/localhost:9200 -k<\/pre>\n\n\n\n<p>The command will return an output like this.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">{\n\"name\" : \"debian11\",\n\"cluster_name\" : \"elasticsearch\",\n\"cluster_uuid\" : \"rByiAU1MTgKUrsYMjX4E4A\",\n\"version\" : {\n\"number\" : \"8.7.0\",\n\"build_flavor\" : \"default\",\n\"build_type\" : \"deb\",\n\"build_hash\" : \"09520b59b6bc1057340b55750186466ea715e30e\",\n\"build_date\" : \"2023-03-27T16:31:09.816451435Z\",\n\"build_snapshot\" : false,\n\"lucene_version\" : \"9.5.0\",\n\"minimum_wire_compatibility_version\" : \"7.17.0\",\n\"minimum_index_compatibility_version\" : \"7.0.0\"\n},\n\"tagline\" : \"You Know, for Search\"\n}<\/pre>\n\n\n\n<p>Next, by default, Elasticsearch is only accessible on localhost. We can set a different address to expose the running node on the network by adding this line to the configuration file:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">network.host: 0.0.0.0<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-jvm-options\">JVM Options<\/h3>\n\n\n\n<p>Another important setting is the jvm.options. We can create a file in \/etc\/elasticsearch\/jvm.options.d\/ directory. By default, Elasticsearch automatically sets the JVM heap size based on a node&#8217;s role and the available, total memory.&nbsp; Using the default sizing is recommended for most production environments.<\/p>\n\n\n\n<p>To override the default heap size, set the minimum and maximum heap size settings, <code class=\"literal\">Xms<\/code> and <code class=\"literal\">Xmx<\/code>. The minimum and maximum values must be the same. Let&#8217;s create a file there and configure the minimum and maximum java heap space.<\/p>\n\n\n\n<p># nano \/etc\/elasticsearch\/jvm.options.d\/memory.conf<\/p>\n\n\n\n<p>And paste these two lines in to that file.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">-Xms4g\n-Xmx4g<\/pre>\n\n\n\n<p>Save the file, then exit. Always remember to restart the service every time we make changes to the configuration file.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># systemctl restart elasticsearch<\/pre>\n\n\n\n<p>Congratulations! You have successfully installed and configured Elasticsearch on Debian 11.<\/p>\n\n\n\n<p>Of course, if you are one of our <a href=\"https:\/\/www.rosehosting.com\/debian-hosting\/\">Debian Hosting<\/a> customers, you don\u2019t have to install and set up Elasticsearch on Debian 11 yourself \u2013 simply ask our admins, sit back, and relax. Our admins will install and set up Elasticsearch on Debian 11 immediately without any additional fee, along with many useful optimizations we can do for you. Managing an Elasticsearch server is not just about the installation; we can help you optimize your Elasticsearch installation if <a href=\"https:\/\/www.rosehosting.com\/linux-vps-hosting\/\">you have a VPS with us<\/a>.<\/p>\n\n\n\n<p>If you liked this post about how to install and set up Elasticsearch on Debian 11, please share it with your friends on social networks or simply leave a comment in the comments section. Thanks.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Elasticsearch is a distributed, free and open search and analytics engine for all types of data, including textual, numerical, geospatial, &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"How to Install and Set Up Elasticsearch on Debian 11\" class=\"read-more button\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-and-set-up-elasticsearch-on-debian-11\/#more-45369\" aria-label=\"Read more about How to Install and Set Up Elasticsearch on Debian 11\">Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":45788,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1700,1236,2072,13],"tags":[48,1120,172],"class_list":["post-45369","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-debian","category-guides","category-open-source","category-tutorials","tag-debian","tag-elasticsearch","tag-install","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-33"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.4 (Yoast SEO v27.4) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Install and Set Up Elasticsearch on Debian 11 | RoseHosting<\/title>\n<meta name=\"description\" content=\"Discover how to effortlessly install Elasticsearch on Debian 11 with our guide, and unlock powerful search capabilities for your data.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-and-set-up-elasticsearch-on-debian-11\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Install and Set Up Elasticsearch on Debian 11\" \/>\n<meta property=\"og:description\" content=\"Discover how to effortlessly install Elasticsearch on Debian 11 with our guide, and unlock powerful search capabilities for your data.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-and-set-up-elasticsearch-on-debian-11\/\" \/>\n<meta property=\"og:site_name\" content=\"RoseHosting\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/RoseHosting\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/rosehosting.helpdesk\" \/>\n<meta property=\"article:published_time\" content=\"2023-06-05T17:30:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-07-02T10:57:46+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/05\/how-to-install-and-set-up-elasticsearch-on-debian-11.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"742\" \/>\n\t<meta property=\"og:image:height\" content=\"372\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"Jeff Wilson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"How to Install and Set Up Elasticsearch on Debian 11\" \/>\n<meta name=\"twitter:description\" content=\"Discover how to effortlessly install Elasticsearch on Debian 11 with our guide, and unlock powerful search capabilities for your data.\" \/>\n<meta name=\"twitter:creator\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:site\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jeff Wilson\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-and-set-up-elasticsearch-on-debian-11\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-and-set-up-elasticsearch-on-debian-11\\\/\"},\"author\":{\"name\":\"Jeff Wilson\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\"},\"headline\":\"How to Install and Set Up Elasticsearch on Debian 11\",\"datePublished\":\"2023-06-05T17:30:00+00:00\",\"dateModified\":\"2025-07-02T10:57:46+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-and-set-up-elasticsearch-on-debian-11\\\/\"},\"wordCount\":844,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-and-set-up-elasticsearch-on-debian-11\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/how-to-install-and-set-up-elasticsearch-on-debian-11.webp\",\"keywords\":[\"debian\",\"elasticsearch\",\"install\"],\"articleSection\":[\"Debian\",\"Guides\",\"Open-source\",\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-and-set-up-elasticsearch-on-debian-11\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-and-set-up-elasticsearch-on-debian-11\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-and-set-up-elasticsearch-on-debian-11\\\/\",\"name\":\"How to Install and Set Up Elasticsearch on Debian 11 | RoseHosting\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-and-set-up-elasticsearch-on-debian-11\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-and-set-up-elasticsearch-on-debian-11\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/how-to-install-and-set-up-elasticsearch-on-debian-11.webp\",\"datePublished\":\"2023-06-05T17:30:00+00:00\",\"dateModified\":\"2025-07-02T10:57:46+00:00\",\"description\":\"Discover how to effortlessly install Elasticsearch on Debian 11 with our guide, and unlock powerful search capabilities for your data.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-and-set-up-elasticsearch-on-debian-11\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-and-set-up-elasticsearch-on-debian-11\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-and-set-up-elasticsearch-on-debian-11\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/how-to-install-and-set-up-elasticsearch-on-debian-11.webp\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/how-to-install-and-set-up-elasticsearch-on-debian-11.webp\",\"width\":742,\"height\":372,\"caption\":\"how to install and set up elasticsearch on debian 11\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-and-set-up-elasticsearch-on-debian-11\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Install and Set Up Elasticsearch on Debian 11\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"name\":\"RoseHosting.com\",\"description\":\"Premium Linux Tutorials Since 2001\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\",\"name\":\"RoseHosting\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"width\":192,\"height\":192,\"caption\":\"RoseHosting\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/RoseHosting\",\"https:\\\/\\\/x.com\\\/rosehosting\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/rosehosting\\\/\"],\"description\":\"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.\",\"email\":\"info@rosehosting.com\",\"telephone\":\"(314) 275-0414\",\"legalName\":\"Rose Web Services LLC\",\"foundingDate\":\"2001-04-02\",\"numberOfEmployees\":{\"@type\":\"QuantitativeValue\",\"minValue\":\"11\",\"maxValue\":\"50\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\",\"name\":\"Jeff Wilson\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"caption\":\"Jeff Wilson\"},\"description\":\"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.\",\"sameAs\":[\"https:\\\/\\\/www.rosehosting.com\",\"https:\\\/\\\/www.facebook.com\\\/rosehosting.helpdesk\"],\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/author\\\/jwilson\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Install and Set Up Elasticsearch on Debian 11 | RoseHosting","description":"Discover how to effortlessly install Elasticsearch on Debian 11 with our guide, and unlock powerful search capabilities for your data.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.rosehosting.com\/blog\/how-to-install-and-set-up-elasticsearch-on-debian-11\/","og_locale":"en_US","og_type":"article","og_title":"How to Install and Set Up Elasticsearch on Debian 11","og_description":"Discover how to effortlessly install Elasticsearch on Debian 11 with our guide, and unlock powerful search capabilities for your data.","og_url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-and-set-up-elasticsearch-on-debian-11\/","og_site_name":"RoseHosting","article_publisher":"https:\/\/www.facebook.com\/RoseHosting","article_author":"https:\/\/www.facebook.com\/rosehosting.helpdesk","article_published_time":"2023-06-05T17:30:00+00:00","article_modified_time":"2025-07-02T10:57:46+00:00","og_image":[{"width":742,"height":372,"url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/05\/how-to-install-and-set-up-elasticsearch-on-debian-11.webp","type":"image\/webp"}],"author":"Jeff Wilson","twitter_card":"summary_large_image","twitter_title":"How to Install and Set Up Elasticsearch on Debian 11","twitter_description":"Discover how to effortlessly install Elasticsearch on Debian 11 with our guide, and unlock powerful search capabilities for your data.","twitter_creator":"@rosehosting","twitter_site":"@rosehosting","twitter_misc":{"Written by":"Jeff Wilson","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-and-set-up-elasticsearch-on-debian-11\/#article","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-and-set-up-elasticsearch-on-debian-11\/"},"author":{"name":"Jeff Wilson","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713"},"headline":"How to Install and Set Up Elasticsearch on Debian 11","datePublished":"2023-06-05T17:30:00+00:00","dateModified":"2025-07-02T10:57:46+00:00","mainEntityOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-and-set-up-elasticsearch-on-debian-11\/"},"wordCount":844,"commentCount":0,"publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-and-set-up-elasticsearch-on-debian-11\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/05\/how-to-install-and-set-up-elasticsearch-on-debian-11.webp","keywords":["debian","elasticsearch","install"],"articleSection":["Debian","Guides","Open-source","Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-and-set-up-elasticsearch-on-debian-11\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-and-set-up-elasticsearch-on-debian-11\/","url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-and-set-up-elasticsearch-on-debian-11\/","name":"How to Install and Set Up Elasticsearch on Debian 11 | RoseHosting","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-and-set-up-elasticsearch-on-debian-11\/#primaryimage"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-and-set-up-elasticsearch-on-debian-11\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/05\/how-to-install-and-set-up-elasticsearch-on-debian-11.webp","datePublished":"2023-06-05T17:30:00+00:00","dateModified":"2025-07-02T10:57:46+00:00","description":"Discover how to effortlessly install Elasticsearch on Debian 11 with our guide, and unlock powerful search capabilities for your data.","breadcrumb":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-and-set-up-elasticsearch-on-debian-11\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-and-set-up-elasticsearch-on-debian-11\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-and-set-up-elasticsearch-on-debian-11\/#primaryimage","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/05\/how-to-install-and-set-up-elasticsearch-on-debian-11.webp","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/05\/how-to-install-and-set-up-elasticsearch-on-debian-11.webp","width":742,"height":372,"caption":"how to install and set up elasticsearch on debian 11"},{"@type":"BreadcrumbList","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-and-set-up-elasticsearch-on-debian-11\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.rosehosting.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Install and Set Up Elasticsearch on Debian 11"}]},{"@type":"WebSite","@id":"https:\/\/www.rosehosting.com\/blog\/#website","url":"https:\/\/www.rosehosting.com\/blog\/","name":"RoseHosting.com","description":"Premium Linux Tutorials Since 2001","publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.rosehosting.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.rosehosting.com\/blog\/#organization","name":"RoseHosting","url":"https:\/\/www.rosehosting.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","width":192,"height":192,"caption":"RoseHosting"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/RoseHosting","https:\/\/x.com\/rosehosting","https:\/\/www.linkedin.com\/in\/rosehosting\/"],"description":"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.","email":"info@rosehosting.com","telephone":"(314) 275-0414","legalName":"Rose Web Services LLC","foundingDate":"2001-04-02","numberOfEmployees":{"@type":"QuantitativeValue","minValue":"11","maxValue":"50"}},{"@type":"Person","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713","name":"Jeff Wilson","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","caption":"Jeff Wilson"},"description":"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.","sameAs":["https:\/\/www.rosehosting.com","https:\/\/www.facebook.com\/rosehosting.helpdesk"],"url":"https:\/\/www.rosehosting.com\/blog\/author\/jwilson\/"}]}},"_links":{"self":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/45369","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/comments?post=45369"}],"version-history":[{"count":11,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/45369\/revisions"}],"predecessor-version":[{"id":50695,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/45369\/revisions\/50695"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media\/45788"}],"wp:attachment":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media?parent=45369"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/categories?post=45369"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/tags?post=45369"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}