코린이의 기록

[Elasticsearch] Mac OS Elasticsearch Install 본문

ELK

[Elasticsearch] Mac OS Elasticsearch Install

코린이예요 2019. 5. 4. 09:24
반응형

Prerequisite

Java 8

$ brew cask install java

-> 명령어를 날리면 되는데.. java12 가 설치된다... 아니 나는 8을 받고 싶다고.. 해서 찾아봤는데

아래 명령어를 쓰면 java8을 설치할 수 있다고... 근데 ...

$ brew tap caskroom/versions

$ brew cask install java8

 

Error: Cask 'java8' is unavailable: No Cask with this name exists. 

ㅇㅈㄹ.........

그래서 결국 직접 다운로드해서 java version 1.8로 만들어 주었다 ㅡㅡ 방법은 아래 링크 참조

https://blog.acu.pe.kr/56

근데 여기서 바로 끝난게 아니라 또 난관에 봉착함.. 

"Operation not permitted" 에러가 발생하는 것이다.. 하 ...

그래서 아래 링크를 참고해서 해결해주었다 ㅅㅂㅅㅂ

https://stackoverflow.com/questions/32659348/operation-not-permitted-when-on-root-el-capitan-rootless-disabled

결과적으로

$ java -version 

java version "1.8.0_211"

Java(TM) SE Runtime Environment (build 1.8.0_211-b12)

Java HotSpot(TM) 64-Bit Server VM (build 25.211-b12, mixed mode)

 

 

1. Hobrew Install

brew command를 사용해서 elasticsearch를 설치할 것이다. 

$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

2. Install Elasticsearch

$ brew install elasticsearch

3. Run Elasticsearch

$ elasticsearch

$ curl -XGET localhost:9200

아래와 같이 출력되면 성공!

{

  "name" : "pIKDldN",

  "cluster_name" : "elasticsearch",

  "cluster_uuid" : "u3mBrizsTK65cG9UFIeUmA",

  "version" : {

    "number" : "6.7.0",

    "build_flavor" : "oss",

    "build_type" : "tar",

    "build_hash" : "8453f77",

    "build_date" : "2019-03-21T15:32:29.844721Z",

    "build_snapshot" : false,

    "lucene_version" : "7.7.0",

    "minimum_wire_compatibility_version" : "5.6.0",

    "minimum_index_compatibility_version" : "5.0.0"

  },

  "tagline" : "You Know, for Search"

}

 

 

Reference : https://chartio.com/resources/tutorials/how-to-install-elasticsearch-on-mac-os-x/

반응형
Comments