1. JAVA环境

下载jdk

配置

2. ES配置,主要是config/jvm.options

默认的堆内存是1G,如果内存不够,启动时会报错

所以需要把jvm.options的堆内存配置成一个合理的值

3. 启动与验证

bin/elasticsearch

bin/elasticsearch -d

4. 安装插件 elasticsearch-head

elasticsearch-head依赖node环境,需要安装node环境

下载node

xz -d filename

tar -zxvf

 

tar -zxJf

配置Path

 

git clone https://github.com/mobz/elasticsearch-head

执行npm install -g grunt-cli编译源码

执行npm install 安装服务,这里用淘宝的npm镜像快一点

npm install -g cnpm --registry=https://registry.npm.taobao.org

执行grunt server启动服务

 

修改配置文件,elasticsearch/config/elasticsearch.yml

http.cors.enabled: true

http.cors.allow-origin: "*"

 

验证插件

接下来访问https://localhost:9200/

 

大数据-ES学习1-安装配置

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-23
  • 2021-05-03
  • 2021-09-26
  • 2022-02-04
  • 2021-12-27
  • 2021-12-21
猜你喜欢
  • 2021-11-29
  • 2021-12-29
  • 2022-12-23
  • 2021-12-30
  • 2021-08-13
  • 2021-04-10
  • 2021-08-01
相关资源
相似解决方案