前提
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