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
问题解决。
运行结果:
访问成功: