{"id":1862,"date":"2022-02-23T16:40:02","date_gmt":"2024-01-22T13:01:32","guid":{"rendered":""},"modified":"2025-02-02T00:46:17","modified_gmt":"2025-02-01T23:46:17","slug":"como-instalar-o-opensearch-no-ubuntu-24-04","status":"publish","type":"post","link":"https:\/\/netcloud24.com\/knowledgebase\/como-instalar-o-opensearch-no-ubuntu-24-04\/","title":{"rendered":"Como Instalar o OpenSearch no Ubuntu 24.04"},"content":{"rendered":"<p>\u00a0<\/p>\n<\/p>\n<p>O OpenSearch \u00e9 um motor de pesquisa e an\u00e1lise open-source amplamente utilizado para an\u00e1lise de logs, monitoriza\u00e7\u00e3o de aplica\u00e7\u00f5es em tempo real e aplica\u00e7\u00f5es baseadas em pesquisa. Siga os passos abaixo para instalar o OpenSearch no Ubuntu 24.04.<\/p>\n<h2>Passo 1: Atualizar o Sistema<\/h2>\n<p>Antes de come\u00e7ar, assegure-se de que o seu sistema est\u00e1 atualizado executando os seguintes comandos:<\/p>\n<pre>        sudo apt update\r\n        sudo apt upgrade\r\n    <\/pre>\n<h2>Passo 2: Instalar o Java<\/h2>\n<p>O OpenSearch requer Java, por isso, \u00e9 necess\u00e1rio instalar o OpenJDK. Execute o seguinte comando para instalar o OpenJDK 11:<\/p>\n<pre>        sudo apt install openjdk-11-jdk\r\n    <\/pre>\n<h2>Passo 3: Baixar e Instalar o OpenSearch<\/h2>\n<p>Adicione o reposit\u00f3rio do OpenSearch e instale o pacote do OpenSearch:<\/p>\n<pre>        wget https:\/\/artifacts.opensearch.org\/downloads\/opensearch\/opensearch-2.10.0-linux-x64.tar.gz\r\n        tar -zxvf opensearch-2.10.0-linux-x64.tar.gz\r\n        sudo mv opensearch-2.10.0 \/usr\/local\/opensearch\r\n    <\/pre>\n<h2>Passo 4: Configurar o OpenSearch<\/h2>\n<p>O OpenSearch requer algumas configura\u00e7\u00f5es antes de ser executado. V\u00e1 para o diret\u00f3rio do OpenSearch e edite o arquivo de configura\u00e7\u00e3o:<\/p>\n<pre>        cd \/usr\/local\/opensearch\/config\r\n        sudo nano opensearch.yml\r\n    <\/pre>\n<p>Fa\u00e7a as altera\u00e7\u00f5es necess\u00e1rias, como configurar network.host e discovery.seed_hosts.<\/p>\n<h2>Passo 5: Iniciar o OpenSearch<\/h2>\n<p>Depois de terminar a configura\u00e7\u00e3o, pode iniciar o OpenSearch executando o seguinte comando:<\/p>\n<pre>        sudo \/usr\/local\/opensearch\/bin\/opensearch\r\n    <\/pre>\n<h2>Passo 6: Verificar a Instala\u00e7\u00e3o do OpenSearch<\/h2>\n<p>Para verificar se o OpenSearch est\u00e1 a funcionar, pode aceder a <a href=\"http:\/\/localhost:9200\">http:\/\/localhost:9200<\/a> no seu navegador. Dever\u00e1 ver uma resposta do OpenSearch.<\/p>\n<h2>Recomenda\u00e7\u00e3o de VPS<\/h2>\n<p>Se estiver \u00e0 procura de um VPS fi\u00e1vel, visite o seguinte link para servi\u00e7os Windows VPS: <a href=\"https:\/\/pt.netcloud24.com\/\" target=\"_blank\" rel=\"follow\">Servi\u00e7os Windows VPS da NetCloud24<\/a>.<\/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>\u00a0 O OpenSearch \u00e9 um motor de pesquisa e an\u00e1lise open-source amplamente utilizado para an\u00e1lise de logs, monitoriza\u00e7\u00e3o de aplica\u00e7\u00f5es em tempo real e aplica\u00e7\u00f5es baseadas em pesquisa.\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":"","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":[],"tags":[14,12,11,23,20,21,22,17,7,8,6,10,18,19,15,24,16,5,13,9],"class_list":["post-1862","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","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\/1862","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=1862"}],"version-history":[{"count":0,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1862\/revisions"}],"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=1862"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/categories?post=1862"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/tags?post=1862"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}