项目地址:https://github.com/mobz/elasticsearch-head
1. 安装npm
项目地址:https://github.com/nodesource/distributions
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs
2. 安装head
```
git clone git://github.com/mobz/elasticsearch-head.git
cd elasticsearch-head
npm install
npm run start
```
3. 修改es配置
vim config/elasticsearch.yml
# 增加新的参数,这样head插件可以访问es
http.cors.enabled: true
http.cors.allow-origin: "*"