更新的答案。
_shutdownAPI已在elasticsearch 2.x中删除。
一些选项:
在您的终端(基本上是开发模式)中,只需键入“ Ctrl-C”
如果您以守护程序(
-d
)的身份启动它,请找到PID并SIGTERM
终止该进程:将彻底关闭Elasticsearch(kill -15 PID
)如果作为服务运行,请运行以下命令
service elasticsearch stop
:- Linux
- 视窗
先前的答案。 现在从1.6开始不推荐使用。
是的
请参阅管理群集节点关闭文档
基本上:
# Shutdown local node$ curl -XPOST 'http://localhost:9200/_cluster/nodes/_local/_shutdown'# Shutdown all nodes in the cluster$ curl -XPOST 'http://localhost:9200/_shutdown'



