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

问题解决。
运行结果:
在这里插入图片描述
访问成功:
在这里插入图片描述

Logo

瓜分20万奖金 获得内推名额 丰厚实物奖励 易参与易上手

更多推荐