Elasticsearch RPM Installation

Source: Internet
Author: User
Tags gpg

Reference: 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 with 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 a 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 and then you'll 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

Installation script:

  
 
  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


From for notes (Wiz)

Elasticsearch RPM Installation

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.