官方粗略教程
Running with built in server
enable cors by adding http.cors.enabled: true in elasticsearch configuration. Don’t forget to also set http.cors.allow-origin because no origin allowed by default. http.cors.allow-origin: "*" is valid value, however it’s considered as a security risk as your cluster is open to cross origin from anywhere.
Check Elasticsearch documentation on this parameter:
git clone git://github.com/mobz/elasticsearch-head.gitcd elasticsearch-head npm install grunt server
open http://localho