Elasticsearch ์„ค์น˜

Simba_bยท2022๋…„ 10์›” 26์ผ
0

Elatsticsearch

๋ชฉ๋ก ๋ณด๊ธฐ
2/5
post-thumbnail

๐Ÿ’ป Elasticsearch ์„ค์น˜



๐Ÿ“Œ๋ฒ„์ „์ •๋ณด

  • ubuntu18.04 LTS
  • openjdk-11
  • Elasticsearch 7.17.7


openJDK ์„ค์น˜ ๋ฐ ๋ฒ„์ „ํ™•์ธ

sudo apt install openjdk-11-jdk
java -version

wget๋ช…๋ น์œผ๋กœ ์ €์žฅ์†Œ์˜ GPG-KEY ๊ฐ€์ ธ์˜ด

wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -

์œ„ wget ๊ฒฐ๊ณผ๋กœ OK๊ฐ€ ์ถœ๋ ฅ๋˜์•ผ ํ•œ๋‹ค.


sources.list.dํด๋”์— elastic-7.x.list์ถ”๊ฐ€

echo "deb https://artifacts.elastic.co/packages/7.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-7.x.list

ํŒจํ‚ค์ง€ ๋ฆฌ์ŠคํŠธ ์—…๋ฐ์ดํŠธ

sudo apt update

Elasticsearch ์„ค์น˜

sudo apt install elasticsearch


๐Ÿ’ป Elasticsearch ์‹คํ–‰

Elasticsearch ์‹คํ–‰

sudo service elasticsearch start

Elasticsearch ์ƒํƒœ ํ™•์ธ

sudo service elasticsearch status

์‹คํ–‰์ค‘์ผ๋•Œ *elasticsearch is running ์ถœ๋ ฅ

Elasticsearch ๋„๊ธฐ

sudo service elasticsearch stop


๐Ÿ’ป Elasticsearch ์ ‘์†

ํฌํŠธ ip๋‚˜ ์ ‘์† ์„ค์ •์„ ์•ˆํ–ˆ์„๋•Œ local host๋กœ ์ ‘์† ๊ฐ€๋Šฅ

http://localhost:9200/

์ ‘์†์‹œ ์•„๋ž˜์™€ ๊ฐ™์€ jsonํ˜•ํƒœ๋กœ elasticsearch๋ฒ„์ „๊ณผ ์ •๋ณด ํ™•์ธ ๊ฐ€๋Šฅ

{
  "name" : "DESKTOP",
  "cluster_name" : "elasticsearch",
  "cluster_uuid" : "________________",
  "version" : {
    "number" : "7.17.7",
    "build_flavor" : "default",
    "build_type" : "deb",
    "build_hash" : "______________________________",
    "build_date" : "2022-10-______________________",
    "build_snapshot" : false,
    "lucene_version" : "8.11.1",
    "minimum_wire_compatibility_version" : "6.8.0",
    "minimum_index_compatibility_version" : "6.0.0-beta1"
  },
  "tagline" : "You Know, for Search"
}

0๊ฐœ์˜ ๋Œ“๊ธ€