我最近安装了Elasticsearch,头几天一切都很好,但是今天却停止了工作。
当我开始服务的时候,它声称很好.
sudo /etc/init.d/elasticsearch start
* Starting Elasticsearch Server
...done.但后来我得到了
curl -GET http://127.0.0.1:9200
curl: (7) couldn't connect to host
查看elasticsearch日志:
[WARN ][bootstrap ] jvm uses the client vm, make sure to run `java` with the server vm for best performance by adding `-server` to the command line似乎有关于Java的警告;这可能是问题所在吗?我还应该试试看什么呢?
发布于 2014-03-01 21:14:50
curl -GET http://127.0.0.1:9200是错误的命令。
试试curl -XGET http://127.0.0.1:9200。它应该返回关于正在运行的本地节点和状态200的简短信息。如果这样做不起作用,那么肯定有其他问题。
https://stackoverflow.com/questions/22110249
复制相似问题