欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

Install Elasticsearch 5.0 on RHEL / CentOS

程序员文章站 2023-12-31 12:51:10
...

Install Elasticsearch 5.x On RHEL / CentOS using Elasticsearch Repository

Install Public Signing Key:

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

Create new repo in your /etc/yum.repos.d/ directory. For example I have created elasticsearch.repo here.

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

[elasticsearch-5.x]
name=Elasticsearch repository for 5.x packages
baseurl=https://artifacts.elastic.co/packages/5.x/yum
gpgcheck=1
gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
enabled=1
autorefresh=1
type=rpm-md

Now your yum repository ready for use. You can install Elasticsearch 5.0 using below yum command.

yum install elasticsearch

Note: The repositories do not work with older rpm based distributions that still use RPM v3, like CentOS5.
Add Elasticsearch service to start automatically when the system boots up:

chkconfig --add elasticsearch

You can start stop Elasticsearch using service command

service elasticsearch start
service elasticsearch stop

Now we have done with Elasticsearch installation. You can check your default Elasticsearch configuration in /etc/elasticsearch/elasticsearch.yml

 

转载自: http://techieroop.com/install-elasticsearch-5-on-centos-rhel/

             https://www.elastic.co/guide/en/elasticsearch/reference/current/rpm.html

相关标签: elasticsearch5

上一篇:

下一篇: