gpt4 book ai didi

linux - 无法在cpanel上运行Elasticsearch(Linux)

转载 作者:行者123 更新时间:2023-12-03 01:19:19 25 4
gpt4 key购买 nike

我无法在实时网络服务器上安装Elasticsearch。我可以使用终端机。我将Elasticsearch下载到我的根目录(public_html)上,并根据 flex 文档提取了它。

在终端上尝试运行elasticsearch时,出现以下错误

enter image description here

请让我知道我该怎么办,以及在实时Web服务器上安装和运行 flex 搜索的正确方法是什么。

谢谢

最佳答案

这不是因为磁盘存储,而是因为系统中可用的RAM更少,并且默认情况下是因为this Elastic doc中所述。

By default, Elasticsearch tells the JVM to use a heap with a minimum and maximum size of 1 GB. When moving to production, it is important to configure heap size to ensure that Elasticsearch has enough heap available.



因此,看起来您的系统中可用的RAM(内存)非常少, ,这导致可用于Elasticsearch进程的堆非常少,这反过来又导致OOM error

解:
  • 首先使用以下命令检查服务器的可用RAM(内存),它将显示总的可用RAM(以GB为单位)。

    免费-g

  • 上面命令的输出看起来像
                  total        used        free      shared  buff/cache   available
    Mem: 1 0 1 0 0 1
    Swap: 0 0 0

    确保至少有1 GB的RAM可用于Elasticsearch进程,然后重新启动,它应该可以工作。

    关于linux - 无法在cpanel上运行Elasticsearch(Linux),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61021999/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com