install elasticsearch from deb code example
Example 1: install elastic search ubuntu
curl -fsSL https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
Example 2: ubuntu install elasticsearch terminal
sudo -i service elasticsearch start
sudo -i service elasticsearch stop