使用YUM安装Elasticsearch(centos7以上)

参考 

1.执行

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

2.打开vim

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

3. 粘贴

[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

4.执行

yum install --enablerepo=elasticsearch elasticsearch

  或者

dnf install --enablerepo=elasticsearch elasticsearch

5.运行

systemctl start elasticsearch

 开机自启动

systemctl enable elasticsearch

  

posted @ 2021-05-28 17:08  叫我亚庆  阅读(695)  评论(0编辑  收藏  举报