如何从Ubuntu上删除Elasticsearch? [英] How to remove Elasticsearch from Ubuntu?

查看:79
本文介绍了如何从Ubuntu上删除Elasticsearch?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我认为我已经从计算机上删除了elasticsearch,但仍然有一些疑问.

I think that I already removed elasticsearch from my computer, and still I have some doubts.

当我键入:

$ service elasticsearch status

我得到:

elasticsearch.service已加载:找不到(原因:没有此类文件或目录)活动:自星期三2017-08-09以来失败(结果:退出代码)01:08:18 PDT;38min ago Main PID:73249(code = exited,状态= 1/失败)

elasticsearch.service Loaded: not-found (Reason: No such file or directory) Active: failed (Result: exit-code) since Wed 2017-08-09 01:08:18 PDT; 38min ago Main PID: 73249 (code=exited, status=1/FAILURE)

Aug 09 01:08:18 ubuntu elasticsearch [73249]:Java HotSpot(TM)64位服务器VM警告:INFO:os :: commit_memory(0x0000000085330000,2060255232,0)fai Aug 09 01:08:18 ubuntu elasticsearch [73249]:#Aug09 01:08:18 ubuntu elasticsearch [73249]:#数量不足以便Java Runtime Environment继续存储.八月09 01:08:18ubuntu elasticsearch [73249]:#本机内存分配(mmap)失败映射2060255232字节以提交保留的内存.八月0901:08:18 ubuntu elasticsearch [73249]:#错误报告文件,更多内容信息另存为:Aug 09 01:08:18 ubuntu elasticsearch [73249]:

Aug 09 01:08:18 ubuntu elasticsearch[73249]: Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x0000000085330000, 2060255232, 0) fai Aug 09 01:08:18 ubuntu elasticsearch[73249]: # Aug 09 01:08:18 ubuntu elasticsearch[73249]: # There is insufficient memory for the Java Runtime Environment to continue. Aug 09 01:08:18 ubuntu elasticsearch[73249]: # Native memory allocation (mmap) failed to map 2060255232 bytes for committing reserved memory. Aug 09 01:08:18 ubuntu elasticsearch[73249]: # An error report file with more information is saved as: Aug 09 01:08:18 ubuntu elasticsearch[73249]:

status = 1/FAILURE Aug 09 01:08:18 ubuntu systemd [1]:elasticsearch.service:单元进入失败状态.八月09 01:08:18ubuntu systemd [1]:elasticsearch.service:结果失败退出代码".8月9日01:12:38 ubuntu systemd [1]:已停止Elasticsearch.

status=1/FAILURE Aug 09 01:08:18 ubuntu systemd[1]: elasticsearch.service: Unit entered failed state. Aug 09 01:08:18 ubuntu systemd[1]: elasticsearch.service: Failed with result 'exit-code'. Aug 09 01:12:38 ubuntu systemd[1]: Stopped Elasticsearch.

但是,当我键入:

$ service helloworld status 

我的话要简短得多:

helloworld.service已加载:找不到(原因:没有此类文件或

helloworld.service Loaded: not-found (Reason: No such file or

目录)有效:无效(无效)

directory) Active: inactive (dead)

我已经使用以下命令删除了Elasticsearch:

I already removed Elasticsearch by using the command:

sudo apt-get --purge autoremove elasticsearch

,看起来仍然像elasticsearch存在.

and it still looks like elasticsearch exists.

推荐答案

卸载后,似乎已经遗忘了Elasticsearch /etc/init.d/elasticsearch 的启动脚本.因此,将其删除,应该是最后一步.

It seems that the startup script for elasticsearch /etc/init.d/elasticsearch has been left behind after the uninstallation. So, remove it and should be the final step.

您还可以尝试使用以下命令查找是否还有其他剩余的脚本,文件或文件夹:

You can also try to locate if there are any other left scripts, files or folders using the following command:

# locate elasticsearch

然后按照弹性论坛中的说明删除它们这里.

And then remove those as explained in elastic forums here.

请注意,要使 locate 能够在任何地方都可以看到,您需要以root用户身份启动命令.

Notice that to enable locate to look everywhere you need to launch the command as root.

这篇关于如何从Ubuntu上删除Elasticsearch?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆