Head插件作用:提供界面化操作Es,基本信息查看,rest请求的模拟.
- 下载地址
https://github.com/mobz/elasticsearch-head.git
- 安装步骤
切换到安装目录下执行
wget https://github.com/mobz/elasticsearch-head.git
- 解压
unzip master.zip
- 检查node环境大于6.0版本
node -v
- 下载依赖
npm install
- 启动服务
npm run start
- ElasticSearch配置跨域访问
修改es/config下的elasticsearch.yml.后面添加
http.cors.enabled: true
http.cors.allow-origin: "*"
- 启动成功(启动在9100端口)
- 访问