Elastic Searchを入れてみる(Cent OS6.5)
前々から気になっていたElastic SearchをCent OSに入れてみました
・参考サイト
http://qiita.com/boheanimato/items/cdcd6dbab7ea32b38710
1.elastic searchをwget
wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.90.9.tar.gz -O elasticsearch.tar.gz
2.解凍してフォルダ名をelasticsearchに
tar -xf elasticsearch.tar.gz
rm elasticsearch.tar.gz
[mv elasticsearch-0.90.9/ elasticsearch/
3.デーモン化して起動するスクリプト準備
curl -L http://github.com/elasticsearch/elasticsearch-servicewrapper/tarball/master | tar -xz
mv *servicewrapper*/service /usr/local/src/elasticsearch/bin/
elasticsearch/bin/service/elasticsearch install
4.起動(JAVA_HOMEが未設定でちょっとハマった・・)
/etc/init.d/elsticsearch start
5.plugin(elasticsearch-head)をインストール
elasticsearch/bin/plugin -install mobz/elasticsearch-head
=> 画面より確認
6.CLIで動いているか確認
curl -X GET http://localhost:9200
とりあえずインストールできたのでデータを入れて色々検証してみる予定
Appendix.
検証などの参考サイト
http://kakakikikeke.blogspot.jp/2013/11/elasticsearchkibana3-varlogmessages.html