2022-12-01
下载win运行包,启动bin/elasticsearch.bat提示内存不足:
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 6404702208 bytes for G1 virtual space
解决办法:https://blog.csdn.net/weixin_52799373/article/details/126136188
修改config/jvm.options加上:
-Xms1g
-Xmx1g
启动后,浏览器填入https://localhost:9200/要输入用户名和密码:
解决办法:elasticsearch-reset-password.bat -a -u elastic #自动生成密码