1.
安装jdk8以上版本
yum install java -y
java -version 查看java版本
官网 https://www.elastic.co/guide/en/elasticsearch/reference/7.3/rpm.html#rpm-running-init
2.
1.下载并安装GPG key
rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch 2.添加yum仓库 vim /etc/yum.repos.d/elasticsearch.repo 加入下面的代码 从官网复制的
[elasticsearch-7.x] 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=1 autorefresh=1 type=rpm-md
3.安装elasticsearch
yum install elasticsearch 4.配置elasticsearch参考 http://www.360doc.com/content/19/0110/15/51464875_807934554.shtml https://www.cnblogs.com/miao-zp/p/6003160.html
原文地址:https://www.cnblogs.com/angdh/p/11450858.html
时间: 2024-12-19 18:22:22