卸载elasticsearch
时间: 2023-08-15 14:12:20 浏览: 337
Elasticsearch-5.4.3集群部署文档.pdf
要卸载elasticsearch,您可以按照以下步骤进行操作:
1. 停止elasticsearch服务:使用以下命令停止elasticsearch服务:
```
systemctl stop elasticsearch.service
```
2. 禁用elasticsearch服务:使用以下命令禁用elasticsearch服务,以防止其在系统启动时自动启动:
```
systemctl disable elasticsearch.service
```
3. 卸载elasticsearch软件包:使用以下命令卸载elasticsearch软件包。请根据您系统中已安装的elasticsearch软件包的名称进行替换:
```
rpm -e --nodeps elasticsearch-6.7.2-1.noarch
```
4. 删除残留文件:使用以下命令删除elasticsearch的配置文件和自定义文件:
```
rm -rf /etc/elasticsearch
rm -rf /opt/software/elasticsearch
```
请注意,上述命令中的软件包名称和文件路径可能会因您的系统配置而有所不同。请根据您的实际情况进行相应的替换。
#### 引用[.reference_title]
- *1* *3* [linux 卸载elasticsearch及安装elasticsearch8.5(rpm)](https://blog.csdn.net/qq_48302234/article/details/128578824)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [【ES实战】Elasticsearch6.7的安装部署卸载-RPM方式](https://blog.csdn.net/weixin_43820556/article/details/128266148)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文