centos7 elastichsearch-6.2.3 node v8.11.1
安装elasticsearch请查看:https://blog.csdn.net/mjlfto/article/details/79769152
1、到nodejs官网现在最新nodejs,官网下载地址:https://nodejs.org/en/download/
2、git clone git://github.com/mobz/elasticsearch-head.git
此时忽略报错,执行:npm install phantomjs-prebuilt@2.1.16 --ignore-scripts
vim elasticsearch-5.6.1/config/elasticsearch.yml
http.cors.enabled: truehttp.cors.allow-origin: "*"
浏览器访问(如无法访问,开启防火墙,添加9100到防火墙):http://192.168.1.107:9100/