[Elasticsearch] Ubuntu 20.04에 Elasticsearch 6.5 설치하기

YoungHyo Choi·2021년 7월 8일
0

Search Engine

목록 보기
3/4

jdk 설치

sudo apt install openjdk-8-jdk

Elasticsearch 설치

Import the Elasticsearch PGP Key

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

Installing from the APT repository

  • Ubuntu apt 저장소 등록 후 설치하는 방법
sudo apt-get install apt-transport-https
echo "deb https://artifacts.elastic.co/packages/6.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-6.x.list
sudo apt-get update && sudo apt-get install elasticsearch

Download and install the Debian package manually

  • 패키지 직접 설치하는 방법
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.5.4.deb
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.5.4.deb.sha512
shasum -a 512 -c elasticsearch-6.5.4.deb.sha512 
sudo dpkg -i elasticsearch-6.5.4.deb

Logstash

APT

# 위에서 받음
wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add - 
sudo apt-get install apt-transport-https

echo "deb https://artifacts.elastic.co/packages/6.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-6.x.list
sudo apt-get update && sudo apt-get install logstash

실행

sudo service elasticsearch start
sudo service logstash start
profile
golang과 elasticsearch를 좋아하는 3년차 백엔드 엔지니어입니다.

0개의 댓글