码迷,mamicode.com
首页 > 其他好文 > 详细

elasticsearch rpm 安装

时间:2015-01-08 21:26:40      阅读:202      评论:0      收藏:0      [点我收藏+]

标签:

参考:http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/setup-repositories.html

Download and install the Public Signing Key

  1. rpm --import https://packages.elasticsearch.org/GPG-KEY-elasticsearch

Add the following in your /etc/yum.repos.d/ directory in a file named (for example) elasticsearch.repo

  1. [elasticsearch-1.4]
  2. name=Elasticsearch repository for 1.4.x packages
  3. baseurl=http://packages.elasticsearch.org/elasticsearch/1.4/centos
  4. gpgcheck=1
  5. gpgkey=http://packages.elasticsearch.org/GPG-KEY-elasticsearch
  6. enabled=1

And your repository is ready for use. You can install it with :

  1. yum install elasticsearch

Configure Elasticsearch to automatically start during bootup. If your distribution is using SysV, then you will need to run :

  1. chkconfig --add elasticsearch

Otherwise if your distribution is using systemd :

  1. sudo /bin/systemctl daemon-reload
  2. sudo /bin/systemctl enable elasticsearch.service

安装脚本:

  1. sudo rpm --import https://packages.elasticsearch.org/GPG-KEY-elasticsearch
  2. sudo cat >/etc/yum.repos.d/elasticsearch.repo <<EOF
  3. [elasticsearch-1.4]
  4. name=Elasticsearch repository for 1.4.x packages
  5. baseurl=http://packages.elasticsearch.org/elasticsearch/1.4/centos
  6. gpgcheck=1
  7. gpgkey=http://packages.elasticsearch.org/GPG-KEY-elasticsearch
  8. enabled=1
  9. EOF
  10. yum install elasticsearch




elasticsearch rpm 安装

标签:

原文地址:http://www.cnblogs.com/liyan101/p/4211861.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!