Linux/Elasticsearchインストール
提供: 初心者エンジニアの簡易メモ
javaインストール
yum install java-1.7.0-openjdk-devel.x86_64
elastic本体DL
cd /usr/local/src wget https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-1.5.2.tar.gz tar zxvf elasticsearch-1.5.2.tar.gz cd elasticsearch-1.5.2
プラグインインストール
bin/plugin -install elasticsearch/elasticsearch-analysis-kuromoji/2.1.0 bin/plugin -install elasticsearch/marvel/latest bin/plugin -install polyfractal/elasticsearch-inquisitor bin/plugin -install mobz/elasticsearch-head
elasticsearchサービスインストール
curl -L http://github.com/elasticsearch/elasticsearch-servicewrapper/tarball/master | tar -xz mv *servicewrapper*/service bin/ rm -rf *servicewrapper* bin/service/elasticsearch install
起動
/etc/init.d/elasticsearch start
自動起動
/sbin/chkconfig elasticsearch on /sbin/chkconfig --list | grep elasticsearch
実行確認
$ curl localhost:9200
{
"status" : 200,
"name" : "Trapster",
"cluster_name" : "elasticsearch",
"version" : {
"number" : "1.5.2",
"build_hash" : "62ff9868b4c8a0c45860bebb259e21980778ab1c",
"build_timestamp" : "2015-04-27T09:21:06Z",
"build_snapshot" : false,
"lucene_version" : "4.10.4"
},
"tagline" : "You Know, for Search"
}
