On fresh install Ubuntu 16.04 I use next steps to install ElasticSearch 5.0.1 or 5.0.2 and ES failed to start. Does anyone know how can I run ES 5.x on Ubuntu 16.04 or 14.04?
- su
- add-apt-repository ppa:webupd8team/java
- apt-get update
- apt-get upgrade
- apt-get install oracle-java8-installer
- java -version
- wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | apt-key add -
- apt-get install apt-transport-https
echo "deb https://artifacts.elastic.co/packages/5.x/apt stable main" | tee -a /etc/apt/sources.list.d/elastic-5.x.list
apt-get update && sudo apt-get install elasticsearch
service elasticsearch status
Elasticsearch 5.x failed to start on Ubuntu 16.04. Does anyone know how can I run ES 5.x on Ubuntu 16.04 or 14.04?
I also try with the new version of Elasticsearch 5.1.1 with this few steps
- su
- apt-get purge elasticsearch
- apt-get update
- apt-get upgrade
- apt-get install elasticsearch
-- new version elasticsearch 5.1.1 is installed
- now if I check status I get this
service elasticsearch status
● elasticsearch.service - Elasticsearch Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; disabled; vendor preset: enabled)
Active: inactive (dead)
Docs: http : / / www.elastic.co
Dec 09 22:49:49 elastic systemd[1]: Stopped Elasticsearch.
java
is installed. Cause the log message that no java binaries available falls intojournalctl
not under elasticsearch.service tag.