简体   繁体   English

完全删除旧版本的elasticsearch并安装新版本

[英]Completely remove old version of elasticsearch and install newer version

There're a lot of articles on the internet regarding new installation of elasticsearch. 互联网上有很多关于Elasticsearch的新安装的文章。 But I already have 1.x version of elasticsearch running. 但是我已经在运行1.x版本的elasticsearch。 I want to remove this first and install a newer version. 我想先删除它,然后安装一个新版本。 How do I do this? 我该怎么做呢? I had used something like this to install the old one: 我曾使用过类似的方法来安装旧版本:

sudo -s  // use as admin

#public key
wget -O - http://packages.elasticsearch.org/GPG-KEY-elasticsearch | apt-key add -

# edit /etc/apt/sources.list and add
deb http://packages.elasticsearch.org/elasticsearch/1.0/debian stable main
deb http://packages.elasticsearch.org/logstash/1.3/debian stable main

sudo apt-get update
sudo apt-get install elasticsearch

Why don't you simply extract the gzip version of elasticsearch and extract its contents. 您为什么不简单地提取Elasticsearch的gzip版本并提取其内容。 That's the recommended way. 这是推荐的方法。 This way you can also keep different versions if you need. 这样,您还可以根据需要保留不同的版本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM