elasticsearch,Ubuntu,Service,elasticsearch" /> elasticsearch,Ubuntu,Service,elasticsearch" />

无法在Ubuntu上作为服务运行ElasticSearch

无法在Ubuntu上作为服务运行ElasticSearch,ubuntu,service,elasticsearch,Ubuntu,Service,elasticsearch,我正试着让ElasticSearch按照正常方式运行 在我的Macbook上,一切都运行得很好,但我正试图在Ubuntu 11.04服务器上做同样的事情 运行/usr/local/elasticsearch/bin/elasticsearch-f工作正常,我从curl得到了响应http://localhost:9200 然而,当我尝试将ElasticSearch作为一项服务启动时(我已经安装了服务包装器),我得到了以下结果: 果然,rcelasticsearch status显示ElasticS

我正试着让ElasticSearch按照正常方式运行

在我的Macbook上,一切都运行得很好,但我正试图在Ubuntu 11.04服务器上做同样的事情

运行
/usr/local/elasticsearch/bin/elasticsearch-f
工作正常,我从
curl得到了响应http://localhost:9200

然而,当我尝试将ElasticSearch作为一项服务启动时(我已经安装了服务包装器),我得到了以下结果:

果然,
rcelasticsearch status
显示
ElasticSearch未运行
,无法访问localhost:9200

你知道有什么问题吗

编辑: 服务日志显示:

Launching a JVM...
JVM exited while loading the application.
Error occurred during initialization of VM
Could not reserve enough space for object heap

服务器实例没有足够的内存用于默认ElasticSearch服务包装设置。为了解决这个问题,我编辑了
/usr/local/elasticsearch/bin/service/elasticsearch.conf
,并将
ES\u HEAP\u SIZE
从1024更改为512

elasticsearch用户是否拥有对elasticsearch安装的数据和日志目录的写入权限?日志文件中有什么内容吗?非常感谢,我的配置是/usr/local/share/elasticsearch/bin/service/elasticsearch.conf,用于debian查看
/etc/default/elasticsearch
。根据启动脚本,
ES_HEAP_SIZE
同时设置分配的最小和最大内存,这样JVM就不必在运行时增加保留空间。我试图编辑我的/usr/share/elasticsearch/bin/service/elasticsearch.conf,但它不起作用。我希望某个地方有更多信息性的错误消息。不起作用。还有其他解决办法吗?
Launching a JVM...
JVM exited while loading the application.
Error occurred during initialization of VM
Could not reserve enough space for object heap