简体   繁体   中英

Completely remove old version of elasticsearch and install newer version

There're a lot of articles on the internet regarding new installation of elasticsearch. But I already have 1.x version of elasticsearch running. 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. That's the recommended way. This way you can also keep different versions if you need.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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