Install ElasticSearch
1. Download
Official website download: https://www.elastic.co/cn/downloads/elasticsearch
The download from the official website is very slow. You can download it from the Huawei Cloud Mirror.
ElasticSearch : https://mirrors.huaweicloud.com/elasticsearch/?C=N&O=D
Here are the instructions for downloading and installing the Windows version 7.6.1 for demonstration.
After downloading, unzip it.
2. Familiar with the catalog
bin 启动文件
config 配置文件
log4j2 日志配置文件
jvm.ooptions java虚拟机相关的配置
elasticsearch.yml elasticsearch的配置文件 默认端口是9200
lib 相关jar包
modules 功能模块
logs 日志
plugins 插件
3. Start
Double-click elasticsearch.bat in the elasticsearch installation directory bin.
You can also use the cmd command window to switch to the installation directory of elasticsearch and enter elasticsearch.bat. So if there is an error, you can clearly see the error message.
The following indicates that the startup is successful!
4. Access test
Visit http://localhost:9200/. You can see the following:
Install the visual interface elasticsearch-head plugin
The premise is to install nodejs. If you don’t, you can install it on Baidu.
1. Download address
https://github.com/mobz/elasticsearch-head
2. Install dependencies and run The
above steps are very clear. Just press it.
3. Access test
Visit http://localhost:9100/
You can see the following interface: the
connection test found that there is a cross-domain problem: configure es
Modify elasticsearch.yml in the elasticsearch installation directory conf and add the following information.
http.cors.enabled: true
http.cors.allow-origin: "*"
4. Restart the es server and connect again.