2021/개발

ELK - Elasticsearch 설치

mjin.park 2021. 4. 27. 22:38

ELK 환경을 구성하기 위해 Elasticsearch를 설치한다. (OS는 macOS)

 

Elasticsearch를 설치하기 위해서 Elastic Homebrew repository를 탭한다.

$ brew tap elastic/tap

 

탭하고 나면, brew install을 이용하여 elasticsearch를 설치할 수 있게 된다.

$ brew install elastic/tap/elasticsearch-full

(...생략...)

==> Caveats
Data: /opt/homebrew/var/lib/elasticsearch/elasticsearch_mjin/
Logs: /opt/homebrew/var/log/elasticsearch/elasticsearch_mjin.log
Plugins: /opt/homebrew/var/elasticsearch/plugins/
Config: /opt/homebrew/etc/elasticsearch/

To have launchd start elastic/tap/elasticsearch-full now and restart at login:
  brew services start elastic/tap/elasticsearch-full
Or, if you don't want/need a background service you can just run:
  elasticsearch

 

설치가 완료되면 Elasticsearch 를 구동하는 방법에 대해서 가이드를 해준다.

구동한 다음, localhost:9200 에 접속해서 정상적으로 구동되었는지 확인한다.

 

위 방법들과 동일한 방식을로 Logstash, Kibana도 설치한다.

# logstash 설치
$ brew install elastic/tap/logstash-full

# logstash 구동
$ brew services start elastic/tap/logstash-full

# kibana 설치
$ brew install elastic/tap/kibana-full

# kibana 구동
$ brew services start elastic/tap/kibana-full

 

 

참고자료

www.elastic.co/guide/en/elasticsearch/reference/7.12/brew.html#brew-layout 

 

Install Elasticsearch on macOS with Homebrew | Elasticsearch Guide [7.12] | Elastic

Install Elasticsearch on macOS with Homebrewedit Elastic publishes Homebrew formulae so you can install Elasticsearch with the Homebrew package manager. To install with Homebrew, you first need to tap the Elastic Homebrew repository: Once you’ve tapped t

www.elastic.co

반응형

'2021 > 개발' 카테고리의 다른 글

OAuth 2.0  (0) 2021.10.10
Spring Batch - 기본 프로젝트 만들기  (0) 2021.05.01
Spring Boot - An illegal reflective access operation has occurred  (0) 2021.04.24
JWT(JSON Web Token)  (0) 2021.02.06
Docker Commands  (0) 2021.01.06