1.下載es(選擇windows版本)
https://www.elastic.co/cn/downloads/elasticsearch
2.解壓安裝包,到bin目錄下,運行elasticsearch.bat
3.打開瀏覽器,輸入127.0.0.1:9200,出現以下內容,表明es安裝&啟動成功
修改es的config目錄下的elasticsearch.yml文件,添加
http.cors.enabled: true
http.cors.allow-origin: "*"
4.下載es header(可視化工具),解壓,此環境依賴與node環境
4.1 如果未安裝node.js,需要先安裝(如果已安裝,可以node -v 查看已經安裝的node.js的版本號)
按照自己的需求設置安裝路徑,然后一路next,直到安裝完成
重新打開cmd,輸入node -v,查看是否打印版本信息,如果有,就成功了。
4.2 使用node安裝grunt
進入node.js的安裝目錄,運行命令:
npm install -g grunt-cli
4.3 安裝es head
進入head的安裝目錄,打開powershell,運行npm install
5. 運行
5.1重新啟動es,運行elasticsearch.bat
5.2es啟動后,在es head下,運行powershell,運行npm run start
訪問下方的localhost:9100或http://127.0.0.1:9100/
最后,本文安裝參考以下博客:
https://blog.csdn.net/qq_36514588/article/details/89452573
https://blog.csdn.net/mottohlm/article/details/80875207