download elasticsearch ubuntu code example
Example 1: install elastic search ubuntu
sudo apt install elasticsearch
Example 2: install elasticsearch ubuntu 18.04
curl -fsSL https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
Example 3: install elasticsearch ubuntu 18.04
sudo apt update