●環境
ホストOS Windows7 64bit
ゲストOS CentOS 6.6 x64
ハイパバイザ VMware Player
●手順
root になる。
●javaのインストール
yum install java
java -version
●elasticsearchのインストール
wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.7.1.tar.gz -O elasticsearch.tar.gz
tar -xf elasticsearch.tar.gz
rm elasticsearch.tar.gz
mv elasticsearch-* elasticsearch
cd elasticsearch/
●設定
vi config/elasticsearch.yml
http.port: 9200
●kuromoji
cd ..
./elasticsearch/bin/plugin --install elasticsearch/elasticsearch-analysis-kuromoji/2.7.0
●起動スクリプト
curl -L http://github.com/elasticsearch/elasticsearch-servicewrapper/tarball/master | tar -xz
mv *servicewrapper*/service ./elasticsearch/bin/
rm -Rf *servicewrapper*
./elasticsearch/bin/service/elasticsearch install
→下記のように表示される。
Detected RHEL or Fedora:
Installing the Elasticsearch daemon..
●起動
/etc/init.d/elasticsearch start
●確認
curl -X GET http://localhost:9200/