Open Sources/ElasticSearch

[ElasticSearch][๋ฌธ์„œ ์ƒ‰์ธ] Linux(CentOS 7) ์„ค์น˜

youn12 2021. 5. 20. 11:09
โœ๏ธ Info.

- Elasticsearch 7.10.0 ์„ค์น˜


๐Ÿ“‹ List.

1. ์„ค์น˜
2. ์„ค์ •
3. ์‹คํ–‰


โœ”๏ธ Content.

 

1. ์„ค์น˜

 

Elasticsearch-7.10.0-linux-x86_64.tar.gz


tar ์••์ถ• ํ•ด์ œ


2. ์„ค์ •

 

1) ์™ธ๋ถ€ ์ ‘์† ๊ฐ€๋Šฅ ์„ค์ •

 

  • elasticsearch-7.10.0/config/elasticsearch.yml ์ˆ˜์ •
  • ์ฃผ์„๋˜์–ด์žˆ๋Š” network.host: 192.168.0.1 -> network.host: 0.0.0.0๋กœ ๋ณ€๊ฒฝ

 

network.host ๊ธฐ๋ณธ๊ฐ’


network.host: 0.0.0.0 ์„ค์ •

  • ์™ธ๋ถ€ ์ ‘์† ์„ค์ •์„ ํ•˜๊ฒŒ ๋˜๋ฉด cluster.initial_master_nodes๋ฅผ ์„ค์ •ํ•ด์•ผ ์ž‘๋™ํ•œ๋‹ค.
  • ์ฃผ์„๋˜์–ด์žˆ๋Š” cluster.initial_master_nodes: ["node-1", "node-2"] -> cluster.initial_master_nodes: ["127.0.0.1"] ๋ณ€๊ฒฝ

 

cluster.initial_master_nodes  ๊ธฐ๋ณธ๊ฐ’


cluster.initial_master_nodes: ["127.0.0.1"] ์„ค์ •

2) ํ˜•ํƒœ์†Œ ๋ถ„์„๊ธฐ ํ”Œ๋Ÿฌ๊ทธ์ธ ์„ค์น˜ (Nori)

 

  • elasticsearch-7.10.0/bin/ ์ด๋™
  • ./elasticsearch-plugin install analysis-nori ๋ช…๋ น์–ด ์‹คํ–‰

3) ํŒŒ์ผ ์ƒ‰์ธ ํ”Œ๋Ÿฌ๊ทธ์ธ ์„ค์น˜ (Ingest)

  • elasticsearch-7.10.0/bin/ ์ด๋™
  • ./elasticsearch-plugin install ingest-attachment ๋ช…๋ น์–ด ์‹คํ–‰

3. ์‹คํ–‰

 

  • elasticsearch-7.10.0/bin/ ์ด๋™
  • ./elasticsearch ์‹คํ–‰
  • Elasticsearch ๊ฐ€ ์„ค์น˜๋œ ์„œ๋ฒ„ IP:9200 (๊ธฐ๋ณธ ํฌํŠธ)
  • ex) 192.168.10.16:9200

 

Elasticsearch ์‹คํ–‰ ํ™•์ธ

 


โ—๏ธ Refer.

๊ณต์‹ ๊ฐ€์ด๋“œ - https://esbook.kimjmin.net/02-install/2.3-elasticsearch/2.3.2-elasticsearch.yml