[Ubuntu] 古いバージョンのElasticsearchのインストール方法

本家のバージョンがどんどん上がっているくが、現状問題ないならあえて追従する必要はないように思う。(セキュリティに重大な問題等なければ)

新しい環境を設定するときに、古いバージョンをインストールするのは少し面倒臭い。

https://www.elastic.co/jp/downloads/past-releases でProductとVersionを選び。ダウンロードボタンをクリックし、該当リンクをコピペ。

$ curl -LO https://download.elastic.co/elasticsearch/release/org/elasticsearch/distribution/deb/elasticsearch/2.4.1/elasticsearch-2.4.1.deb
$ sudo dpkg -i elasticsearch-2.4.1.deb && rm elasticsearch-2.4.1.deb

ちなみにconfigがないと怒られるので

$ sudo ln -s /etc/elasticsearch/ /usr/share/elasticsearch/config

またrootで起動できないとも言われるので

$ sudo /usr/share/elasticsearch/bin/elasticsearch -Des.insecure.allow.root=true

Related Posts