๊ธ€ ์ž‘์„ฑ์ž: ๋˜ฅํด๋ฒ .
๋ฐ˜์‘ํ˜•

์š”๊ตฌ ์‚ฌํ•ญ


  • ์ž์‹ ์˜ ํ™˜๊ฒฝ์—์„œ elastic search 7.x ๋Œ€๋ฅผ ์„ค์น˜ ํ•  ์ˆ˜ ์žˆ๋Š”์ง€ ์•„๋ž˜ ๋งํฌ์—์„œ ํ™•์ธ๋‹ค. https://www.elastic.co/kr/support/matrix

  • Java 8 ์ด์ƒ ๊ถŒ์žฅ

 

์„ค์น˜


1. Download and install the public signing key:

$ rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch

 

2. /etc/yum.repos.d/์— elasticsearch.repo ์ƒ์„ฑ

[elasticsearch-7.x]
name=Elasticsearch repository for 7.x packages
baseurl=https://artifacts.elastic.co/packages/7.x/yum
gpgcheck=1
gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
enabled=1
autorefresh=1
type=rpm-md

 

3. yum install elasticsearch

sudo yum install elasticsearch

 

4. ์„œ๋น„์Šค ๋“ฑ๋ก ๋ฐ ์‹คํ–‰

$ sudo systemctl enable elasticsearch.service
$ sudo service elasticsearch start

 

โ€ป Elastic Search ๊ฒฝ๋กœ
Install path:
 /usr/share/elasticsearch
config file path: /etc/elasticsearch
Init script path: /etc/init.d/elasticsearch

 

ํ…Œ์ŠคํŠธ


$ curl -XGET 127.0.0.1:9200
{
  "name" : "localhost.localdomain",
  "cluster_name" : "elasticsearch",
  "cluster_uuid" : "jojjGB_oRZu4e0sY0jQflw",
  "version" : {
    "number" : "7.3.0",
    "build_flavor" : "default",
    "build_type" : "rpm",
    "build_hash" : "de777fa",
    "build_date" : "2019-07-24T18:30:11.767338Z",
    "build_snapshot" : false,
    "lucene_version" : "8.1.0",
    "minimum_wire_compatibility_version" : "6.8.0",
    "minimum_index_compatibility_version" : "6.0.0-beta1"
  },
  "tagline" : "You Know, for Search"
}

 

 

'curl: (7) : Failed connect to localhost:9200; ์—ฐ๊ฒฐ์ด ๊ฑฐ๋ถ€๋จ'์ด ์ถœ๋ ฅ๋˜๋Š” ๊ฒฝ์šฐ.


/etc/elasticsearch/elasticsearch.yml ํŒŒ์ผ์—์„œ ์•„๋ž˜ ์„ค์ •์„ ํ™•์ธํ•œ๋‹ค. (์ฃผ์„ ํ•ด์ œ)

network.host: 127.0.0.1

http.port: 9200

 

์‹คํ–‰ ํ›„ ์–ด๋Š ์ •๋„ ๊ธฐ๋‹ค๋ ค์•ผ elastic search๊ฐ€ ์ •์ƒ ๋™์ž‘ํ•˜๋ฏ€๋กœ ์œ„์˜ ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒํ•œ๋‹ค๋ฉด ๊ธฐ๋‹ค๋ ธ๋‹ค๊ฐ€ ๋‹ค์‹œ ๋ช…๋ น์„ ๋‚ ๋ ค๋ณธ๋‹ค.

 

 

์ถœ์ฒ˜


https://soye0n.tistory.com/172
๋ฐ˜์‘ํ˜•