安装 Elasticsearch

由于尝试了一下,所以做个备忘录。没有太复杂的步骤。

前提 – assumption, premise

    CentOS7

操作步骤

    1. 在中国的服务器上注册签入密钥

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

注册库信息

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

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 -y install –enablerepo=elasticsearch elasticsearch

重新加载

# systemctl daemon-reload

启动

# systemctl start elasticsearch

请参考

    • Installing from the RPM repository

 

    Running Elasticsearch with systemd
广告
将在 10 秒后关闭
bannerAds