Skip to content

Instantly share code, notes, and snippets.

@nucreativa
Last active November 29, 2017 06:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nucreativa/680660f2c418bbd1a04182f45514e3bb to your computer and use it in GitHub Desktop.
Save nucreativa/680660f2c418bbd1a04182f45514e3bb to your computer and use it in GitHub Desktop.
Install ElasticSearch on Debian 9 Fresh Installation

Download and install the public signing key:

wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -

You may need to install the apt-transport-https package on Debian before proceeding:

sudo apt-get install apt-transport-https

Save the repository definition to /etc/apt/sources.list.d/elastic-6.x.list:

echo "deb https://artifacts.elastic.co/packages/6.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-6.x.list

You can install the Elasticsearch Debian package with:

sudo apt-get update && sudo apt-get install elasticsearch

ElasticSearch need JRE to run

sudo apt-get install default-jre
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment