Elasticsearch/Kibana Ubuntu설치

Donghyun Kim·2023년 1월 19일
0

설치

Elasticsearch 설치

1 sudo apt update
2 sudo apt-get update
3 sudo apt install openjdk-8-jdk
4 sudo java -version
5 sudo wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
6 sudo sudo sh -c 'echo "deb https://artifacts.elastic.co/packages/7.x/apt stable main" > /etc/apt/sources.list.d/elastic-7.x.list'
7 sudo apt update
8 sudo apt install elasticsearch

Kibana 설치

1 sudo apt-get install kibana

환경파일 수정

elasticsearch.yml

http.host: 0.0.0.0
http.port: 9200

kibana.yml

server.port: 5601
server.host: "0.0.0.0"
elasticsearch.hosts: ["http://localhost:9200"]

실행

systemctl start elasticsearch.service
systemctl enable elasticsearch.service

systemctl start kibana.service
systemctl enable kibana.service

자동 실행 데몬 등록

sudo systemctl daemon-reload
sudo systemctl enable elasticsearch.service
sudo systemctl enable kibana
profile
"Hello World"

0개의 댓글