本章是在 windows10 下安装 Elasticsearch 7.1.1版本。
下载
方式一:
百度网盘 下载,提取码为 lc0y
。
方式一:
官网 下载。
启动 Elasticsearch
打开终端,进入 Elasticsearch
目录,运行命令 bin\elasticsearch
,未报错,访问 http://localhost:9200
出现如下页面,表示启动成功:
Elasticsearch安装目录文件说明
文件(夹) | 功能 |
---|---|
bin | 可执行文件目录 |
config | 配置文件目录 |
data | 数据存储目录 |
lib | 第三方依赖库 |
logs | 输出日志目录 |
modules | 依赖模块目录 |
plugins | 插件目录 |
LICENSE.txt | LICENSE 声明文件 |
NOTICE.txt | 版本声明文件 |
README.textile | Elasticsearch 介绍信息 |
后台运行 Elasticsearch
运行命令 bin\elasticsearch -d
。
关闭 Elasticsearch
方式一:
直接在终端运行 Ctrl+C
。
方式二:
运行命令 jps
,查看进程 id,然后杀死。