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
執(zhí)行安裝
yum install --enablerepo=elasticsearch elasticsearch
4.配置
修改 /etc/elasticsearch/elasticsearch.yml
image.png