我正在尝试按照正常的设置指南启动并运行 ElasticSearch 。
在我的 Macbook 上一切都运行良好,但我正在尝试在 Ubuntu 11.04 服务器上做同样的事情。
运行/usr/local/elasticsearch/bin/elasticsearch -f
有效,我得到了curl http://localhost:9200
.
然而,当我尝试将 ElasticSearch 作为服务启动时,这是我得到的(我已经安装了服务包装器):
$ rcelasticsearch start
Starting ElasticSearch...
Waiting for ElasticSearch.............................
WARNING: ElasticSearch may have failed to start.
果然rcelasticsearch status
说ElasticSearch is not running
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