Edited at

elasticsearch 2.1.1 環境構築

More than 3 years have passed since last update.


環境

# cat /etc/redhat-release

CentOS Linux release 7.2.1511 (Core)


java

# yum -y install java-1.8.0-openjdk.x86_64


elasticsearch


install

# rpm --import https://packages.elastic.co/GPG-KEY-elasticsearch

# vi /etc/yum.repos.d/elasticsearch.repo

[elasticsearch-2.x]
name=Elasticsearch repository for 2.x packages
baseurl=http://packages.elastic.co/elasticsearch/2.x/centos
gpgcheck=1
gpgkey=http://packages.elastic.co/GPG-KEY-elasticsearch
enabled=1

# yum -y install elasticsearch


config

# vi /etc/elasticsearch/elasticsearch.yml

network.host: 192.168.33.10


起動

# systemctl enable elasticsearch.service

# systemctl start elasticsearch.service


plugin

install手順


head

# /usr/share/elasticsearch/bin/plugin install mobz/elasticsearch-head


inquisitor

# /usr/share/elasticsearch/bin/plugin install polyfractal/elasticsearch-inquisitor


kuromoji

# /usr/share/elasticsearch/bin/plugin install analysis-kuromoji


kibana

elasticsearchのpluginから入れる方法わからなかったので別途インストール


install

# wget https://download.elastic.co/kibana/kibana/kibana-4.3.1-linux-x64.tar.gz

# tar zxvf kibana-4.3.1-linux-x64.tar.gz


config

# vi config/kibana.yml

elasticsearch.url: "http://192.168.33.10:9200"


plugin


sense

# ./bin/kibana plugin --install elastic/sense


起動

起動スクリプト

# chkconfig --add kibana4

# /etc/init.d/kibana4 start