无法在cpanel上运行Elasticsearch(Linux) [英] Cant Run Elasticsearch on cpanel (Linux)

查看:65
本文介绍了无法在cpanel上运行Elasticsearch(Linux)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I am having trouble in installing the Elasticsearch on my live webserver. I have terminal access. I downloaded the elasticsearch on my root directory (public_html) and extracted it as per elastic documnents.

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

When on terminal i try to run elasticsearch i get the following error

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

Kindly let me know what can i do and what is the right way to install and run elastic search on the live web server.

谢谢

推荐答案

这不是因为磁盘存储,而是因为系统中可用的RAM较少,并且默认情况下,如

This is not because of disk storage, it's because of less RAM available in your system and by default as stated in this Elastic doc.

默认情况下,Elasticsearch告诉JVM使用最小的堆且最大大小为1 GB.当进入生产阶段时,这一点很重要配置堆大小以确保Elasticsearch有足够的堆可用.

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进程可用的堆很少,这反过来导致

So, Looks like there is very less RAM(memory) available in your system, which is leading to very less heap available for Elasticsearch process which in turn causing OOM error.

  1. 首先使用以下命令检查服务器的可用RAM(内存),该信息将显示总的可用RAM(以GB为单位).

  1. First check the available RAM(memory) of your server by using below command, which will show the total and available RAM in GB.

免费-g

以上命令的输出将类似于

The output of the above command will look like

              total        used        free      shared  buff/cache   available
Mem:              1           0           1           0           0           1
Swap:             0           0           0

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

这篇关于无法在cpanel上运行Elasticsearch(Linux)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆