48
47

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

ElasticSearch を yum でインストールする

Last updated at Posted at 2014-01-22

概要

yum を利用した ElasticSearch のインストール方法です。
コンパイルは面倒だし、service スクリプト作りたくない。

手順

  1. リポジトリの追加

    sudo vim /etc/yum.repos.d/elasticsearch.repo

    バージョン 1.0.x を使いたい場合

    elasticsearch.repo

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


    バージョン 0.90x を使いたい場合

    ```elasticsearch.repo
[elasticsearch-0.90]
name=Elasticsearch repository for 0.90.x packages
baseurl=http://packages.elasticsearch.org/elasticsearch/0.90/centos
gpgcheck=1
gpgkey=http://packages.elasticsearch.org/GPG-KEY-elasticsearch
enabled=1
  1. インストール

    sudo yum install elasticsearch

  2. サービス起動

    sudo service elasticsearch start

  3. 動作確認

$ curl -X GET http://localhost:9200/
{
"status" : 200,
"name" : "Shroud",
"version" : {
"number" : "1.0.0.RC1",
"build_hash" : "c6155c5142f7995e054f9f3b7d82f923dd3620bc",
"build_timestamp" : "2014-01-15T17:02:32Z",
"build_snapshot" : false,
"lucene_version" : "4.6"
},
"tagline" : "You Know, for Search"
}


5. 自動起動設定

    `sudo chkconfig elasticsearch on`



参考
========
- [Announcing Deb And Rpm Repositories | Blog | Elasticsearch](http://www.elasticsearch.org/blog/apt-and-yum-repositories/)
48
47
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
48
47

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?