elasticsearch-head 安装使用

前提

npm自己下载安装

1.安装

git clone git://github.com/mobz/elasticsearch-head.git
cd elasticsearch-head
npm install
npm run start
open http://localhost:9100/

2.如果是本机安装es不会有跨域问题,如果其他机器安装的es

2.1 打开es核心配置文件

vim elasticsearch.yml

2.2 添加

http.cors.enabled: true
http.cors.allow-origin: "*"

2.3 重启es

posted @ 2020-10-22 17:21  橙宝技术  阅读(137)  评论(0编辑  收藏  举报