第一步:下载ES,链接[https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.3.0.zip]

第二步: 修改ES配置文件,在末尾加上

            http.cors.enabled: true

            http.cors.allow-origin: "*"

第三步: 执行 bin/elasticsearch (或 bin\elasticsearch.bat  在Windows系统中)

第四步: 在浏览器中输入http://localhost:9200/       

{
  "name" : "69Amu1t",
  "cluster_name" : "elasticsearch",
  "cluster_uuid" : "_XaiMa0VR0mRZ1tZAAYaHA",
  "version" : {
    "number" : "5.3.0",
    "build_hash" : "3adb13b",
    "build_date" : "2017-03-23T03:31:50.652Z",
    "build_snapshot" : false,
    "lucene_version" : "6.4.1"
  },
  "tagline" : "You Know, for Search"
}

打印出上面的JSON串说明ES服务启动成功


第五步: 安装ES插件,首先通过git下载源码, git clone git://github.com/mobz/elasticsearch-head.git


第六步: 在插件根目录启动grunt,命令格式[grunt server]

第七步: 在浏览器中输入http://localhost:9100/

备注:java,nodejs需要安装,作者默认您已经安装了j_0057.gif