1.安裝jdk1.8
2.系統可用內存大於2G
#參考網址:
https://github.com/medcl/elasticsearch-rtf
下載後:
解壓:
並跳轉到bin目錄
執行 elasticsearch.bat
可能會遇到的錯誤,原因應該是電腦內存的問題:
Error occurred during initialization of VM Could not reserve enough space for 20971
解決辦法:
找到
打開jvm.options做一下修改
################################################################
#IMPORTANT: JVM heap size
################################################################
…
#Xms represents the initial size of total heap space
#Xmx represents the maximum size of total heap space
-Xms2g
-Xmx2g
修改爲
-Xms256m
-Xmx256m
問題解決。
運行結果:
訪問成功: