Elasticsearch搭建

--write by zhuwx 2019-12-17 15:07:00 +0800 CST

rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch
vim /etc/zypp/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 install --enablerepo=elasticsearch elasticsearch
/bin/systemctl daemon-reload /bin/systemctl enable elasticsearch.service
systemctl start elasticsearch.service