jdk をインストールします。
oracle のサイトから以下をDLしてきます。
jdk-8u25-linux-x64.rpm
sudo rpm -ivh jdk-8u25-linux-x64.rpm
java -version
$ java -version
java version "1.8.0_25"
Java(TM) SE Runtime Environment (build 1.8.0_25-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode)
無事インストールされました。
elasticsearch をインストールします。
http://www.elasticsearch.org/overview/elkdownloads/
こちらは公式から tar を落としてきます。
tar 解凍後
cd elasticsearch-1.4.2
./bin/elasticsearch
[2014-12-30 00:28:43,765][INFO ][node ] [Everett Thomas] version[1.4.2], pid[28778], build[927caff/2014-12-16T14:11:12Z]
[2014-12-30 00:28:43,765][INFO ][node ] [Everett Thomas] initializing ...
[2014-12-30 00:28:43,770][INFO ][plugins ] [Everett Thomas] loaded [], sites []
[2014-12-30 00:28:49,100][INFO ][node ] [Everett Thomas] initialized
[2014-12-30 00:28:49,100][INFO ][node ] [Everett Thomas] starting ...
[2014-12-30 00:28:49,520][INFO ][transport ] [Everett Thomas] bound_address {inet[/0:0:0:0:0:0:0:0:9300]}, publish_address {inet[/10.0.2.15:9300]}
[2014-12-30 00:28:49,708][INFO ][discovery ] [Everett Thomas] elasticsearch/dsBywZVwSZ2dsd786xcNSA
[2014-12-30 00:28:53,633][INFO ][cluster.service ] [Everett Thomas] new_master [Everett Thomas][dsBywZVwSZ2dsd786xcNSA][localhost.localdomain][inet[/10.0.2.15:9300]], reason: zen-disco-join (elected_as_master)
[2014-12-30 00:28:53,659][INFO ][http ] [Everett Thomas] bound_address {inet[/0:0:0:0:0:0:0:0:9200]}, publish_address {inet[/10.0.2.15:9200]}
[2014-12-30 00:28:53,660][INFO ][node ] [Everett Thomas] started
[2014-12-30 00:28:53,710][INFO ][gateway ] [Everett Thomas] recovered [0] indices into cluster_state
起動したようです。
コマンドを叩いて確認します。
curl -X GET http://localhost:9200/
{
"status" : 200,
"name" : "Everett Thomas",
"cluster_name" : "elasticsearch",
"version" : {
"number" : "1.4.2",
"build_hash" : "927caff6f05403e936c20bf4529f144f0c89fd8c",
"build_timestamp" : "2014-12-16T14:11:12Z",
"build_snapshot" : false,
"lucene_version" : "4.10.2"
},
"tagline" : "You Know, for Search"
}
成功しました。
以上です。