Configuración de su primer clúster
Repase el proceso de instalación de Elasticsearch y configuración de un clúster básico de un solo nodo para comenzar su recorrido.
Configuración de su primer clúster es una lección gratuita de Elasticsearch & Full Text Search Systems en CoddyKit. Esta es la lección 3 de 4. Puedes leer la lección completa abajo gratuitamente — luego la practicas en el navegador con un editor de código integrado y un tutor de IA 24/7. Forma parte de la ruta de aprendizaje de Elasticsearch & Full Text Search Systems, y tu progreso se sincroniza en la web y la app de CoddyKit. El curso de Elasticsearch & Full Text Search Systems incluye 4 lecciones en total.
Partes de esta lección aún no han sido traducidas y se muestran en 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 -versionDownload 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.gzExplore 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/elasticsearchVerify 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.
Preguntas frecuentes
¿La lección «Configuración de su primer clúster» es gratis?
Sí — el texto completo de «Configuración de su primer clúster» es gratis para leer aquí en la web. Para practicarla de forma interactiva (editor de código integrado y tutor de IA 24/7) y desbloquear el resto del curso de Elasticsearch & Full Text Search Systems, actualiza a CoddyKit PRO. El curso de Elasticsearch & Full Text Search Systems incluye 4 lecciones en total.
¿Qué aprenderé en «Configuración de su primer clúster»?
Repase el proceso de instalación de Elasticsearch y configuración de un clúster básico de un solo nodo para comenzar su recorrido. Practicas Elasticsearch & Full Text Search Systems con código real que ejecutas directamente en el navegador, y un tutor de IA 24/7 responde tus preguntas mientras trabajas en la lección.
¿Necesito experiencia previa para empezar Elasticsearch & Full Text Search Systems?
No se requiere experiencia previa. Elasticsearch & Full Text Search Systems en CoddyKit está estructurado para principiantes hasta estudiantes avanzados, así que puedes empezar aquí o desde el inicio y avanzar a tu ritmo. Esta es la lección 3 de 4.
¿Cuánto tiempo toma la lección «Configuración de su primer clúster»?
La mayoría de las lecciones de CoddyKit toman alrededor de 5–10 minutos. Cada una es compacta e interactiva, así que avanzas constantemente y retomas exactamente por donde dejaste en la web y la app.
¿Puedo escribir y ejecutar código en esta lección de Elasticsearch & Full Text Search Systems?
Sí. Cada lección de Elasticsearch & Full Text Search Systems incluye un editor de código integrado, así que escribes y ejecutas código real directamente en tu navegador y obtienes retroalimentación instantánea de IA — sin configuración local necesaria.
Todas las lecciones de este curso
- ¿Qué es la búsqueda de texto completo?
- Conceptos básicos de Elasticsearch
- Configuración de su primer clúster
- Analizadores, tokenizadores y el índice invertido