การตั้งค่าคลัสเตอร์แรกของคุณ
เรียนรู้ขั้นตอนติดตั้ง Elasticsearch และตั้งค่าคลัสเตอร์พื้นฐานแบบโหนดเดียวเพื่อเริ่มต้นการเรียนรู้
การตั้งค่าคลัสเตอร์แรกของคุณ เป็นบทเรียน Elasticsearch & Full Text Search Systems ฟรีบน CoddyKit นี่คือบทเรียนที่ 3 จากทั้งหมด 4 บทเรียน คุณสามารถอ่านบทเรียนทั้งหมดด้านล่างฟรี — จากนั้นลองปฏิบัติด้วยตัวคุณเองในเบราว์เซอร์พร้อมตัวแก้ไขโค้ดในตัวและติวเตอร์ AI ตลอด 24/7 บทเรียนนี้เป็นส่วนหนึ่งของเส้นทางการเรียน Elasticsearch & Full Text Search Systems และความก้าวหน้าของคุณจะซิงค์ข้ามเว็บและแอป CoddyKit คอร์ส Elasticsearch & Full Text Search Systems มีบทเรียนทั้งหมด 4 บทเรียน
บางส่วนของบทเรียนนี้ยังไม่ได้รับการแปล และแสดงเป็นภาษาอังกฤษ
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.
เรียนรู้ Elasticsearch & Full Text Search Systems ด้วย AI tutor — ฟรี
เขียนและเรียกใช้โค้ดจริงในเบราว์เซอร์ของคุณ รับความช่วยเหลือทันทีจาก AI tutor 24/7 และเรียนรู้ต่อจากที่คุณหยุดบนเว็บหรือในแอป
- คอร์ส
- 12
- บทเรียน
- 48
คำถามที่พบบ่อย
บทเรียน “การตั้งค่าคลัสเตอร์แรกของคุณ” ฟรีหรือไม่
ใช่ — ข้อความเต็มของ “การตั้งค่าคลัสเตอร์แรกของคุณ” ฟรีให้อ่านที่นี่บนเว็บ เพื่อปฏิบัติแบบโต้ตอบ (ตัวแก้ไขโค้ดในตัวและติวเตอร์ AI ตลอด 24/7) และปลดล็อคส่วนที่เหลือของคอร์ส Elasticsearch & Full Text Search Systems ให้อัปเกรดเป็น CoddyKit PRO คอร์ส Elasticsearch & Full Text Search Systems มีบทเรียนทั้งหมด 4 บทเรียน
คุณจะเรียนรู้อะไรในบทเรียน “การตั้งค่าคลัสเตอร์แรกของคุณ”
เรียนรู้ขั้นตอนติดตั้ง Elasticsearch และตั้งค่าคลัสเตอร์พื้นฐานแบบโหนดเดียวเพื่อเริ่มต้นการเรียนรู้ คุณปฏิบัติ Elasticsearch & Full Text Search Systems ด้วยโค้ดที่ใช้งานได้จริงที่คุณเรียกใช้โดยตรงในเบราว์เซอร์ และติวเตอร์ AI ตลอด 24/7 ตอบคำถามของคุณขณะที่คุณไปผ่านบทเรียน
คุณต้องมีประสบการณ์ก่อนที่จะเริ่มเรียน Elasticsearch & Full Text Search Systems หรือไม่
ไม่จำเป็นต้องมีประสบการณ์มาก่อน Elasticsearch & Full Text Search Systems บน CoddyKit ออกแบบมาสำหรับผู้เริ่มต้นไปจนถึงผู้เรียนขั้นสูง คุณสามารถเริ่มต้นที่นี่หรือเริ่มจากตัวแรกและเรียนด้วยความเร็วของคุณเอง นี่คือบทเรียนที่ 3 จากทั้งหมด 4 บทเรียน
บทเรียน “การตั้งค่าคลัสเตอร์แรกของคุณ” ใช้เวลานานแค่ไหน
บทเรียน CoddyKit ส่วนใหญ่ใช้เวลาประมาณ 5–10 นาที แต่ละบทเรียนจึงสั้นและเป็นแบบโต้ตอบ คุณสามารถก้าวหน้าอย่างต่อเนื่องและกลับมาเรียนต่อจากตรงที่เพิ่งหยุดบนเว็บและแอปได้เลย
ฉันเขียนและรันโค้ดในบทเรียน Elasticsearch & Full Text Search Systems นี้ได้ไหม
ได้ บทเรียน Elasticsearch & Full Text Search Systems ทุกบทมีตัวแก้ไขโค้ดในตัว คุณจึงเขียนและรันโค้ดจริงได้เลยในเบราว์เซอร์ และได้รับข้อเสนอแนะจาก AI ในทันที — ไม่ต้องติดตั้งในเครื่องของคุณ
บทเรียนทั้งหมดในหลักสูตรนี้
- การค้นหาข้อความแบบเต็มคืออะไร
- แนวคิดหลักของ Elasticsearch
- การตั้งค่าคลัสเตอร์แรกของคุณ
- ตัววิเคราะห์ ตัวแบ่งคำ และดัชนีแบบกลับด้าน