Elasticsearch 6.8 在 Linux 下的安装部署
Elasticsearch 简介:
核心功能:搜索和分析数据
官方文档介绍如下:
You know, for search (and analysis)
Elasticsearch is the distributed search and analytics engine at the heart of the Elastic Stack.
Elasticsearch provides real-time search and analytics for all types of data.
安装前需要知道的事:
-
Elasticsearch 版本需对应的 Java 版本:
建议安装前在官网查询:https://www.elastic.co/cn/support/matrix#matrix_jvm
实际在安装过程中发现,虽然 Elasticsearch 7 以上的版本支持 Java 1.8.0 ,但是运行时会提示使用 Java 11,故,我在这里选择安装的是 Elasticsearch 6.8.13 。具体版本支持的 Java 版本,可在对应 Elasticsearch 的安装文档中
Set up Elasticsearch
选项查询到。 -
Elasticsearch 不能在 root 用户下运行,我们一般新建一个普通用户,在该普通用户的主目录下安装。