Centos 7.X 安装 Elasticsearch (yum)

  1. 官网 Install Elasticsearch with RPM | Elasticsearch Guide [7.16] | Elastic

2.下载公钥

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

3.在 /etc/yum.repos.d/ 下添加 elasticsearch.repo

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

刷新 yum 缓存

yum clean all
yum makecache

执行安装

yum install --enablerepo=elasticsearch elasticsearch

4.配置
修改 /etc/elasticsearch/elasticsearch.yml


image.png

你可能感兴趣的:(Centos 7.X 安装 Elasticsearch (yum))