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/