ElasticSearch躺坑中

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                  #自動生成密碼

 

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