아래의 URL을 들어가서 해당 설치파일을 다운받는다.
https://www.elastic.co/downloads/elasticsearch
저는 zip선택 ( https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-1.7.1.zip )
2. elasticsearch설치
단순히 원하는 폴더에 압축을 풀어줍니다.
3. elasticsearch설정파일 수정
압축을 푼 뒤, 해당 폴더에서 config/elasticsearch.yml 설정 파일을 수정해 줍니다.
#으로 주석 처리 된, 다음 부분들을 기본적으로 수정해줍니다.
- cluster.name
- node.name
- bootstrap.mlockall
- network.host
설정 예)
cluster.name: elasticsearch_cinari4-dev
node.name: "cinari4_01_dev"
bootstrap.mlockall: true
network.host: 127.0.0.1
해당 설정파일의 자세한 설명은 아래의 URL에서 살펴보면됩니다.
( https://www.elastic.co/guide/en/elasticsearch/reference/current/setup-configuration.html )
4. marvel plugin설치
압축을 푼 폴더에서 아래의 명령어 실행하면 최신 marvel plugin을 다운받습니다.
./bin/plugin -i elasticsearch/marvel/latest
5. elasticsearch실행
아래의 명령어로 elasticsearch를 실행시킵니다.
./bin/elasticsearch
6. 웹 브라우저에서 marvel로 접속
아래의 URL로 접속해 marvel로 GUI로 elasticsearch를 테스트 할 수 있습니다.
http://localhost:9200/_plugin/marvel/sense/index.html
http://127.0.0.1:9200/_plugin/marvel/sense/index.html