{"id":43098,"date":"2022-11-09T11:10:48","date_gmt":"2022-11-09T17:10:48","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=43098"},"modified":"2022-12-28T04:55:29","modified_gmt":"2022-12-28T10:55:29","slug":"how-to-install-elasticsearch-on-ubuntu-22-04","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-install-elasticsearch-on-ubuntu-22-04\/","title":{"rendered":"How to Install Elasticsearch on Ubuntu 22.04"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div><p><img decoding=\"async\" class=\"alignnone size-full wp-image-43436\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/10\/install-elasticsearch-on-ubuntu-22-04.jpg\" alt=\"Install ElasticSearch on Ubuntu 22.04\" width=\"742\" height=\"372\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/10\/install-elasticsearch-on-ubuntu-22-04.jpg 742w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/10\/install-elasticsearch-on-ubuntu-22-04-300x150.jpg 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/10\/install-elasticsearch-on-ubuntu-22-04-150x75.jpg 150w\" sizes=\"(max-width: 742px) 100vw, 742px\" \/><\/p>\n<p>In this tutorial, we are going to show you how to install and configure Elasticsearch on Ubuntu 22.04<\/p>\n<p>Elasticsearch is a search engine based on the Lucene library. It is distributed, scalable, and open-source software used to store the collected data. On a daily basis, the administrators use elasticsearch because it has many features such as high availability, various sets of APIs, support for more than one index, native Java API, and many more.<\/p>\n<p><a href=\"https:\/\/www.rosehosting.com\/blog\/how-to-set-up-elasticsearch-cluster-on-rosehosting-cloud\/\">Installing Elasticsearch<\/a> on Ubuntu 22.04 is a straightforward process that can take up to 15 minutes. Let&#8217;s get started!<\/p>\n<p><!--more--><\/p>\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-69f2560d6434d\" 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-69f2560d6434d\"  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-elasticsearch-on-ubuntu-22-04\/#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-elasticsearch-on-ubuntu-22-04\/#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-elasticsearch-on-ubuntu-22-04\/#Step-2-Install-Elasticsearch\" >Step 2. Install Elasticsearch<\/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-elasticsearch-on-ubuntu-22-04\/#Step-3-Configure-Elasticsearch\" >Step 3. Configure Elasticsearch<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Prerequisites\"><\/span>Prerequisites<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<ul>\n<li>Fresh install of Ubuntu 22.04<\/li>\n<li>User privileges: root or non-root user with sudo privileges<\/li>\n<\/ul>\n<h2><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<p>If you have a fresh installation of Ubuntu 22.04, then it is recommended to update the system packages to their latest versions available.<\/p>\n<pre>sudo apt update -y &amp;&amp; sudo apt upgrade -y<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Step-2-Install-Elasticsearch\"><\/span>Step 2. Install Elasticsearch<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>First, we are going to add the elasticsearch public key to the APT and the elastic source to the <b>sources.list.d<\/b>. This is necessary because there are no available Elasticsearch components in the default Ubuntu 22.04 repository.<\/p>\n<p>To add the <b>GPG-KEY<\/b> execute the following command:<\/p>\n<pre>curl -fsSL https:\/\/artifacts.elastic.co\/GPG-KEY-elasticsearch | sudo gpg --dearmor -o \/usr\/share\/keyrings\/elastic.gpg<\/pre>\n<p>To add the elastic source to the <b>sources.list.d<\/b>, execute the following command:<\/p>\n<pre>echo \"deb [signed-by=\/usr\/share\/keyrings\/elastic.gpg] https:\/\/artifacts.elastic.co\/packages\/7.x\/apt stable main\" | sudo tee -a \/etc\/apt\/sources.list.d\/elastic-7.x.list<\/pre>\n<p>After adding them, your command line should look like this.<\/p>\n<pre>root@host:~# curl -fsSL https:\/\/artifacts.elastic.co\/GPG-KEY-elasticsearch | sudo gpg --dearmor -o \/usr\/share\/keyrings\/elastic.gpg\r\nroot@host:~# echo \"deb [signed-by=\/usr\/share\/keyrings\/elastic.gpg] https:\/\/artifacts.elastic.co\/packages\/7.x\/apt stable main\" | sudo tee -a \/etc\/apt\/sources.list.d\/elastic-7.x.list\r\ndeb [signed-by=\/usr\/share\/keyrings\/elastic.gpg] https:\/\/artifacts.elastic.co\/packages\/7.x\/apt stable main\r\nroot@host:~#\r\n<\/pre>\n<p>Now, update the system and install the elastic search with the following commands:<\/p>\n<pre>sudo apt update -y\r\n\r\nsudo apt install elasticsearch\r\n\r\n<\/pre>\n<p>Once the installation is completed, start and enable the elasticsearch service.<\/p>\n<pre>sudo systemctl start elasticsearch &amp;&amp; sudo systemctl enable elasticsearch<\/pre>\n<p>After starting and enabling the service, you should receive the following output:<\/p>\n<pre>Synchronizing state of elasticsearch.service with SysV service script with \/lib\/systemd\/systemd-sysv-install.\r\nExecuting: \/lib\/systemd\/systemd-sysv-install enable elasticsearch\r\nCreated symlink \/etc\/systemd\/system\/multi-user.target.wants\/elasticsearch.service \u2192 \/lib\/systemd\/system\/elasticsearch.service.\r\n<\/pre>\n<p>To check the status of the service, if it is up and running, execute the following command:<\/p>\n<pre>sudo systemctl status elasticsearch<\/pre>\n<p>You should receive the following output:<\/p>\n<pre>root@host:~# sudo systemctl status elasticsearch\r\n\u25cf elasticsearch.service - Elasticsearch\r\n     Loaded: loaded (\/lib\/systemd\/system\/elasticsearch.service; enabled; vendor preset: enabled)\r\n     Active: active (running) since Tue 2022-09-20 18:59:08 CEST; 2min 6s ago\r\n       Docs: https:\/\/www.elastic.co\r\n   Main PID: 115284 (java)\r\n      Tasks: 70 (limit: 4575)\r\n     Memory: 2.3G\r\n        CPU: 1min 42.632s\r\n     CGroup: \/system.slice\/elasticsearch.service\r\n             \u251c\u2500115284 \/usr\/share\/elasticsearch\/jdk\/bin\/java -Xshare:auto -Des.networkaddress.cache.ttl=60 -Des.networkaddress.cache.negative.ttl=10 -XX:+AlwaysPreTouch&gt;\r\n             \u2514\u2500115476 \/usr\/share\/elasticsearch\/modules\/x-pack-ml\/platform\/linux-x86_64\/bin\/controller\r\n\r\nSep 20 18:58:26 host.test.vps systemd[1]: Starting Elasticsearch...\r\nSep 20 18:59:08 host.test.vps systemd[1]: Started Elasticsearch.\r\n<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Step-3-Configure-Elasticsearch\"><\/span>Step 3. Configure Elasticsearch<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>The fresh installation of Elasticsearch without configuration is not enough for elasticsearch to run the way it should. Well, it will run properly, but it is recommended to reconfigure some of the original settings.<\/p>\n<p>The main configuration file of Elasticsearch is located at \/etc\/elasticsearch\/elasticsearch.yml on the server. Before we make any changes, it is recommended to have a copy of the original file.<\/p>\n<pre>cp \/etc\/elasticsearch\/elasticsearch.yml \/etc\/elasticsearch\/elasticsearch.yml.original<\/pre>\n<p>Now, when we have a copy, we can proceed with configuring the Elasticsearch service.<\/p>\n<p>The Elastic search service listens on port <b>9200<\/b> from everywhere only on the loopback interface <b>127.0.0.1<\/b>.<\/p>\n<pre>root@host:~# netstat -tunlp | grep 9200\r\ntcp6       0      0 127.0.0.1:9200          :::*                    LISTEN      115284\/java\r\ntcp6       0      0 ::1:9200                :::*                    LISTEN      115284\/java\r\n<\/pre>\n<p>To restrict access from everywhere, open the <b>elasticsearch.yml<\/b> and find the <b>network.host<\/b> line and set the network.host to localhost.<\/p>\n<pre># By default Elasticsearch is only accessible on localhost. Set a different\r\n# address here to expose this node on the network:\r\n#\r\n<b>network.host: localhost<\/b>\r\n#\r\n# By default Elasticsearch listens for HTTP traffic on the first free port it\r\n# finds starting at 9200. Set a specific HTTP port here:\r\n#\r\n<\/pre>\n<p>Next is to allow access to the default Elasticsearch HTTP API port for the trusted remote host via a specific IP address. That IP address is the IP address of the server. Access will be allowed with the UFW service.<\/p>\n<pre>sudo ufw allow from <b>your_server_ip_address<\/b> to any port 9200<\/pre>\n<p>These are the basic steps to configure and secure Elasticsearch. If you want, you can change the listening port <b>9200<\/b> to another, but you will have to repeat these steps again. It is up to you.<\/p>\n<p>The last thing is to test Elasticsearch. To do that, just execute the <b>curl -X GET &#8216;http:\/\/localhost:9200&#8217;<\/b> command in your command line. You should receive the following output:<\/p>\n<pre>root@host:~# curl -X GET 'http:\/\/localhost:9200'\r\n{\r\n  \"name\" : \"host.test.vps\",\r\n  \"cluster_name\" : \"elasticsearch\",\r\n  \"cluster_uuid\" : \"4fzCc1XzQjOwpHqJgWBNvg\",\r\n  \"version\" : {\r\n    \"number\" : \"7.17.6\",\r\n    \"build_flavor\" : \"default\",\r\n    \"build_type\" : \"deb\",\r\n    \"build_hash\" : \"f65e9d338dc1d07b642e14a27f338990148ee5b6\",\r\n    \"build_date\" : \"2022-08-23T11:08:48.893373482Z\",\r\n    \"build_snapshot\" : false,\r\n    \"lucene_version\" : \"8.11.1\",\r\n    \"minimum_wire_compatibility_version\" : \"6.8.0\",\r\n    \"minimum_index_compatibility_version\" : \"6.0.0-beta1\"\r\n  },\r\n  \"tagline\" : \"You Know, for Search\"\r\n}\r\n<\/pre>\n<p>Congratulations! You successfully installed and configured Elasticsearch on Ubuntu 22.04 in no time.<\/p>\n<p>Of course, if this setup is complex for you, you just need to sign up for <a href=\"https:\/\/www.rosehosting.com\/managed-vps-hosting\/\">one of our NVMe VPS plans<\/a> and submit a support ticket. Our admins will help you with any aspect of configuring Elasticsearch. We are available 24\/7.<\/p>\n<p>If you liked this about installing Elasticsearch on Ubuntu 22.04, please share it with your friends on social networks or simply leave a reply below. Thanks.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, we are going to show you how to install and configure Elasticsearch on Ubuntu 22.04 Elasticsearch is &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"How to Install Elasticsearch on Ubuntu 22.04\" class=\"read-more button\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-elasticsearch-on-ubuntu-22-04\/#more-43098\" aria-label=\"Read more about How to Install Elasticsearch on Ubuntu 22.04\">Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":43436,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13,1698],"tags":[1120,1603,2012],"class_list":["post-43098","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","category-ubuntu","tag-elasticsearch","tag-how-to-install","tag-ubuntu-22-04","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.5) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Install Elasticsearch on Ubuntu 22.04 | RoseHosting<\/title>\n<meta name=\"description\" content=\"In this tutorial, we are going to show you how to install and configure Elasticsearch on Ubuntu 22.04. Let&#039;s get started!\" \/>\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-elasticsearch-on-ubuntu-22-04\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Install Elasticsearch on Ubuntu 22.04\" \/>\n<meta property=\"og:description\" content=\"In this tutorial, we are going to show you how to install and configure Elasticsearch on Ubuntu 22.04. Let&#039;s get started!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-elasticsearch-on-ubuntu-22-04\/\" \/>\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=\"2022-11-09T17:10:48+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-12-28T10:55:29+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/10\/install-elasticsearch-on-ubuntu-22-04.jpg?v=1666781928\" \/>\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\/jpeg\" \/>\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 Elasticsearch on Ubuntu 22.04\" \/>\n<meta name=\"twitter:description\" content=\"In this tutorial, we are going to show you how to install and configure Elasticsearch on Ubuntu 22.04. Let&#039;s get started!\" \/>\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-elasticsearch-on-ubuntu-22-04\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-elasticsearch-on-ubuntu-22-04\\\/\"},\"author\":{\"name\":\"Jeff Wilson\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\"},\"headline\":\"How to Install Elasticsearch on Ubuntu 22.04\",\"datePublished\":\"2022-11-09T17:10:48+00:00\",\"dateModified\":\"2022-12-28T10:55:29+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-elasticsearch-on-ubuntu-22-04\\\/\"},\"wordCount\":569,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-elasticsearch-on-ubuntu-22-04\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/10\\\/install-elasticsearch-on-ubuntu-22-04.jpg\",\"keywords\":[\"elasticsearch\",\"how to install\",\"ubuntu 22.04\"],\"articleSection\":[\"Tutorials\",\"Ubuntu\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-elasticsearch-on-ubuntu-22-04\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-elasticsearch-on-ubuntu-22-04\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-elasticsearch-on-ubuntu-22-04\\\/\",\"name\":\"How to Install Elasticsearch on Ubuntu 22.04 | RoseHosting\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-elasticsearch-on-ubuntu-22-04\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-elasticsearch-on-ubuntu-22-04\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/10\\\/install-elasticsearch-on-ubuntu-22-04.jpg\",\"datePublished\":\"2022-11-09T17:10:48+00:00\",\"dateModified\":\"2022-12-28T10:55:29+00:00\",\"description\":\"In this tutorial, we are going to show you how to install and configure Elasticsearch on Ubuntu 22.04. Let's get started!\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-elasticsearch-on-ubuntu-22-04\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-elasticsearch-on-ubuntu-22-04\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-elasticsearch-on-ubuntu-22-04\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/10\\\/install-elasticsearch-on-ubuntu-22-04.jpg\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/10\\\/install-elasticsearch-on-ubuntu-22-04.jpg\",\"width\":742,\"height\":372,\"caption\":\"Install ElasticSearch on Ubuntu 22.04\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-elasticsearch-on-ubuntu-22-04\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Install Elasticsearch on Ubuntu 22.04\"}]},{\"@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 Elasticsearch on Ubuntu 22.04 | RoseHosting","description":"In this tutorial, we are going to show you how to install and configure Elasticsearch on Ubuntu 22.04. Let's get started!","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-elasticsearch-on-ubuntu-22-04\/","og_locale":"en_US","og_type":"article","og_title":"How to Install Elasticsearch on Ubuntu 22.04","og_description":"In this tutorial, we are going to show you how to install and configure Elasticsearch on Ubuntu 22.04. Let's get started!","og_url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-elasticsearch-on-ubuntu-22-04\/","og_site_name":"RoseHosting","article_publisher":"https:\/\/www.facebook.com\/RoseHosting","article_author":"https:\/\/www.facebook.com\/rosehosting.helpdesk","article_published_time":"2022-11-09T17:10:48+00:00","article_modified_time":"2022-12-28T10:55:29+00:00","og_image":[{"width":742,"height":372,"url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/10\/install-elasticsearch-on-ubuntu-22-04.jpg?v=1666781928","type":"image\/jpeg"}],"author":"Jeff Wilson","twitter_card":"summary_large_image","twitter_title":"How to Install Elasticsearch on Ubuntu 22.04","twitter_description":"In this tutorial, we are going to show you how to install and configure Elasticsearch on Ubuntu 22.04. Let's get started!","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-elasticsearch-on-ubuntu-22-04\/#article","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-elasticsearch-on-ubuntu-22-04\/"},"author":{"name":"Jeff Wilson","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713"},"headline":"How to Install Elasticsearch on Ubuntu 22.04","datePublished":"2022-11-09T17:10:48+00:00","dateModified":"2022-12-28T10:55:29+00:00","mainEntityOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-elasticsearch-on-ubuntu-22-04\/"},"wordCount":569,"commentCount":0,"publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-elasticsearch-on-ubuntu-22-04\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/10\/install-elasticsearch-on-ubuntu-22-04.jpg","keywords":["elasticsearch","how to install","ubuntu 22.04"],"articleSection":["Tutorials","Ubuntu"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-elasticsearch-on-ubuntu-22-04\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-elasticsearch-on-ubuntu-22-04\/","url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-elasticsearch-on-ubuntu-22-04\/","name":"How to Install Elasticsearch on Ubuntu 22.04 | RoseHosting","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-elasticsearch-on-ubuntu-22-04\/#primaryimage"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-elasticsearch-on-ubuntu-22-04\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/10\/install-elasticsearch-on-ubuntu-22-04.jpg","datePublished":"2022-11-09T17:10:48+00:00","dateModified":"2022-12-28T10:55:29+00:00","description":"In this tutorial, we are going to show you how to install and configure Elasticsearch on Ubuntu 22.04. Let's get started!","breadcrumb":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-elasticsearch-on-ubuntu-22-04\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-elasticsearch-on-ubuntu-22-04\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-elasticsearch-on-ubuntu-22-04\/#primaryimage","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/10\/install-elasticsearch-on-ubuntu-22-04.jpg","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/10\/install-elasticsearch-on-ubuntu-22-04.jpg","width":742,"height":372,"caption":"Install ElasticSearch on Ubuntu 22.04"},{"@type":"BreadcrumbList","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-elasticsearch-on-ubuntu-22-04\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.rosehosting.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Install Elasticsearch on Ubuntu 22.04"}]},{"@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\/43098","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=43098"}],"version-history":[{"count":9,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/43098\/revisions"}],"predecessor-version":[{"id":43437,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/43098\/revisions\/43437"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media\/43436"}],"wp:attachment":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media?parent=43098"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/categories?post=43098"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/tags?post=43098"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}