๐๋ฒ์ ์ ๋ณด
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 ์คํ
sudo service elasticsearch start
Elasticsearch ์ํ ํ์ธ
sudo service elasticsearch status
์คํ์ค์ผ๋ *elasticsearch is running ์ถ๋ ฅ
Elasticsearch ๋๊ธฐ
sudo service elasticsearch stop
ํฌํธ ip๋ ์ ์ ์ค์ ์ ์ํ์๋ local host๋ก ์ ์ ๊ฐ๋ฅ
์ ์์ ์๋์ ๊ฐ์ 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"
}