Skip to content
This repository has been archived by the owner on Sep 2, 2019. It is now read-only.

elasticsearch

kakaka19 edited this page Jan 18, 2018 · 1 revision

Elasticsearchのインストール

ダウンロード

Download Elasticsearch * version 5.5.2

上記のページから.zipファイルをダウンロード もしくはcurlコマンドで.tar.gzファイルをダウンロードします

curl -L -O https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.5.2.tar.gz

tarコマンドで解凍

tar -xvf elasticsearch-5.5.2.tar.gz 

起動

*起動オプションでindex作成先ディレクトリとlogの出力先ディレクトリが指定できます

elasticsearch-5.5.2/bin/elasticsearch -Epath.data=index作成先ディレクトリ -Epath.logs=log出力先ディレクトリ

起動確認

curlコマンドでGETリクエスト送信

curl -Xget 'http://localhost:9200'

正常に起動している場合は以下のレスポンスが返されます

{
  "name" : "xxfx_jf",
  "cluster_name" : "elasticsearch",
  "cluster_uuid" : "GjLU50mZSnCtpI3JQl3O9A",
  "version" : {
    "number" : "5.5.2",
    "build_hash" : "b2f0c09",
    "build_date" : "2017-08-14T12:33:14.154Z",
    "build_snapshot" : false,
    "lucene_version" : "6.6.0"
  },
  "tagline" : "You Know, for Search"
}
Clone this wiki locally