0Pricing
Elasticsearch & Full Text Search Systems · Aula

Configurando seu primeiro cluster

Acompanhe o processo de instalação do Elasticsearch e de configuração de um cluster básico de nó único para iniciar sua jornada.

Configurando seu primeiro cluster é uma aula grátis de Elasticsearch & Full Text Search Systems no CoddyKit. Esta é a aula 3 de 4. Você pode ler a aula completa abaixo gratuitamente — depois pratica ao vivo no navegador com um editor de código integrado e um tutor de IA 24/7. Faz parte do caminho de aprendizado de Elasticsearch & Full Text Search Systems, e seu progresso é sincronizado entre a web e o app CoddyKit. O curso de Elasticsearch & Full Text Search Systems inclui 4 aulas no total.

Partes desta aula ainda não foram traduzidas e aparecem em inglês.

Your First Elasticsearch Node

Let's get a single-node Elasticsearch cluster running locally — your launchpad for experimenting with indexing and search.

Prerequisite: Java Runtime

Elasticsearch runs on Java, so you'll need a JRE — recent versions want Java 11 or later. The command below checks your version.

java -version

Download Elasticsearch

Grab Elasticsearch from the official Elastic site: a .zip for Windows, a .tar.gz for Linux or macOS. Pick the latest stable release.

Unpack the Archive

Extract the archive to create the Elasticsearch directory. On Linux or macOS the tar command does it — just swap in your version number.

tar -xzf elasticsearch-x.y.z-linux-x86_64.tar.gz

Explore the Directories

Inside the unpacked folder, the key directories are bin/ (executables), config/ (settings), data/ (your index), and logs/.

Basic Configuration

For a single node, defaults are usually fine. The main config file is config/elasticsearch.yml, where cluster.name and node.name live.

Start Elasticsearch

Time to start the node: cd into the directory and run the startup script. Elasticsearch runs in the foreground, so keep this terminal open.

cd elasticsearch-x.y.z
bin/elasticsearch

Verify Startup

Verify it's up by hitting its default port, 9200, from a new terminal with the curl command below.

curl -X GET "localhost:9200/?pretty"

Interpreting the Output

A healthy node returns JSON with cluster_name, node_name, the version, and the tagline You Know, for Search — proof your node is live.

Stopping Elasticsearch

To shut down gracefully, go back to the terminal running Elasticsearch and press Ctrl+C. Closing the window may leave it running in the background.

Quick Check

You've just learned how to set up and verify a basic Elasticsearch node. Let's test your understanding.

Recap & Next Steps

Done! You installed, started, verified, and stopped your first single-node cluster. Next, we'll index and search real documents.

Perguntas Frequentes

A aula “Configurando seu primeiro cluster” é grátis?

Sim — o texto completo de “Configurando seu primeiro cluster” é grátis para ler aqui na web. Para praticá-la interativamente (um editor de código integrado e um tutor de IA 24/7) e desbloquear o restante do curso de Elasticsearch & Full Text Search Systems, atualize para CoddyKit PRO. O curso de Elasticsearch & Full Text Search Systems inclui 4 aulas no total.

O que vou aprender em “Configurando seu primeiro cluster”?

Acompanhe o processo de instalação do Elasticsearch e de configuração de um cluster básico de nó único para iniciar sua jornada. Você pratica Elasticsearch & Full Text Search Systems com código prático que executa diretamente no navegador, e um tutor de IA 24/7 responde suas dúvidas enquanto trabalha na aula.

Preciso ter experiência prévia para começar Elasticsearch & Full Text Search Systems?

Nenhuma experiência prévia é necessária. Elasticsearch & Full Text Search Systems no CoddyKit é estruturado para alunos iniciantes até avançados, então você pode começar aqui ou desde o início e aprender no seu ritmo. Esta é a aula 3 de 4.

Quanto tempo leva a aula “Configurando seu primeiro cluster”?

A maioria das aulas CoddyKit leva cerca de 5–10 minutos. Cada uma é compacta e interativa, então você faz progresso constante e retoma exatamente de onde parou entre web e app.

Posso escrever e executar código nesta aula de Elasticsearch & Full Text Search Systems?

Sim. Cada aula de Elasticsearch & Full Text Search Systems inclui um editor de código integrado, então você escreve e executa código real direto no navegador e recebe feedback de IA instantaneamente — nenhuma configuração local necessária.

Todas as aulas deste curso

  1. O que é a busca de texto completo
  2. Conceitos fundamentais do Elasticsearch
  3. Configurando seu primeiro cluster
  4. Analisadores, tokenizadores e o índice invertido
← Voltar para Elasticsearch & Full Text Search Systems