# Java 설치

sudo apt install openjdk-11-jdk
java -version

# Elasticsearch리파지토리 GPG 공개키를 import

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

# Elasticsearch 라파지토리를 등록

sudo sh -c 'echo "deb https://artifacts.elastic.co/packages/7.x/apt stable main" > /etc/apt/sources.list.d/elastic-7.x.list'

# Elasticsearch 설치

sudo apt update
sudo apt install elasticsearch

# 설정파일

vi /etc/elasticsearch/elasticsearch.yml

vi /etc/elasticsearch/jvm.options

1g

or 

 

100m

 

 

# 서비스 등록

sudo systemctl enable elasticsearch.service

# start & stop

sudo systemctl start elasticsearch.service
sudo systemctl restart elasticsearch.service
sudo systemctl stop elasticsearch.service

# 상태조회

sudo systemctl status elasticsearch.service

# 실행확인

curl -XGET localhost:9200

 

'Data Engineering > ELK' 카테고리의 다른 글

[Ubuntu] Filebeat설치  (0) 2022.03.15
Filebeat / Logstash 설정  (0) 2022.03.14
kibana 설정  (0) 2022.03.14
[Centos] ELK 설치  (0) 2022.03.13

+ Recent posts