一、下载
https://www.elastic.co/cn/downloads/past-releases#elasticsearch
如下图 选择版本

我用的是7.17.5 你换成你需要的版本

二 使用
1.解压
解压完如图

2.启动
进入 bin 文件目录,双击运行 elasticsearch.bat 文件启动 ES 服务

出现报错

Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
①解决方法
进入config目录,在elasticsearch.yml 配置文件中添加如下配置
ingest.geoip.downloader.enabled: false

加上后 成功启动












