LoginSignup
6
6

More than 5 years have passed since last update.

CentOS6.6(x64)にelasticsearchをインストールする

Last updated at Posted at 2015-08-13

●環境
ホスト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/
6
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
6