完全卸载并删除Elasticsearch以完成重新启动并开始新的 [英] Completly deinstall and remove Elasticsearch for complete restart and begin new
问题描述
在试用Elasticsearch之后,我正在寻找一种方法来完全删除我的服务器上有关Elasticsearch的所有内容。我犯了很多错误,想要全新的安装开始。我希望这不是一个太普遍的问题,将来对其他noobs将是有用的。
After experimenting with Elasticsearch I'm searching for a way to completely remove everything concerning Elasticsearch on my server. I made quite a few mistakes and want to start completely new with a new installation. I hope this is not a too general question and will be useful for other noobs in the future.
推荐答案
只需找到Java进程该弹性搜索是在和杀死,或使用卷曲-XPOST / *您的Ip * /:9200 / _shutdown
。
Simply find the Java process that Elasticsearch is in and kill, or use curl -XPOST /*Your Ip*/:9200/_shutdown
.
然后通过删除ES文件/文件夹从系统中删除Elasticsearch。
Then remove Elasticsearch from your system by simply deleting the ES files/folder.
各种不同的设置可能需要不同的删除方法(linux使用 rm - rf
ES dirs,windows好的ol'删除按钮将工作,logstash可能需要额外的步骤),但作为一般规则,这很简单的删除。
Various different setups could require different deletion methods (linux use rm -rf
ES dirs, windows the good ol' delete button will work, logstash may require additional steps) but as a general rule it's quite simply to remove.
如果您只想删除数据,您可以删除数据目录,或者擦除所有索引和索引。
If you wish to remove only the data you can delete the data dir, or wipe all your indexes and reindex.
这篇关于完全卸载并删除Elasticsearch以完成重新启动并开始新的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!