標籤:elasticsearch windows 搭建es環境
第一步:下載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需要安裝,作者預設您已經安裝了650) this.width=650;" src="http://img.baidu.com/hi/jx2/j_0057.gif" alt="j_0057.gif" />
本文出自 “大資料踐行者” 部落格,謝絕轉載!
elasticsearch5.3.0在windows中的開發環境搭建