安装elasticsearch-rtf

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

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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章