# /

# 下载地址

#下载elasticsearch
https://mirrors.huaweicloud.com/elasticsearch/
#下载kibana
https://mirrors.huaweicloud.com/kibana/
#下载head
git clone https://github.com/mobz/elasticsearch-head
1
2
3
4
5
6

# 安装启动

# elasticsearch安装

bin/elasticsearch.bat
localhost:9200

#elasticsearch.yml
http.port: 9200
http.cors.enabled: true
http.cors.allow-origin: "*"
1
2
3
4
# kibana安装

bin/kibana.bat
localhost:5601

#kibana.yml
elasticsearch.hosts: ["http://localhost:9200"]
1
2
# head安装

localhost:9100

#安装依赖
#nodejs
node -v

#grunt
npm install -g grunt-cli
grunt -version

#安装head
git clone https://github.com/mobz/elasticsearch-head
cd elasticsearch-head
#如果安装报错,更换国内镜像或忽略。
npm install
npm run start
1
2
3
4
5
6
7
8
9
10
11
12
13
14

image.png
image.png

# dbeaver连接es

# 下载对应版本JDBC驱动
<!-- https://mvnrepository.com/artifact/org.elasticsearch.plugin/x-pack-sql-jdbc -->
<dependency>
    <groupId>org.elasticsearch.plugin</groupId>
    <artifactId>x-pack-sql-jdbc</artifactId>
    <version>7.10.0</version>
</dependency>
1
2
3
4
5
6
# 启动elasticsearch

bin/elasticsearch.bat

# 启动dbeaver连接elasticsearch,设置JDBC驱动

image.png
image.png
image.png

# 更新许可为试用
#更新许可为试用
curl -X POST "localhost:9200/_license/start_trial?acknowledge=true&pretty"
#查看许可
curl -X GET "localhost:9200/_license"
1
2
3
4

image.png