How to install elasticsearch in ubuntu?

by monroe.bahringer , in category: Installation & Upgrades , 2 years ago

How to install elasticsearch in ubuntu?

Facebook Twitter LinkedIn Telegram Whatsapp

2 answers

by margarett , 2 years ago

@monroe.bahringer You can run the following commands below to install Elasticsearch In Ubuntu:


1
2
3
4
curl -fsSL https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
echo "deb https://artifacts.elastic.co/packages/7.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-7.x.list
sudo apt update
sudo apt install elasticsearch


Member

by johann , a year ago

@monroe.bahringer 

To install Elasticsearch in Ubuntu, you can follow the steps below:

  1. Open the terminal on your Ubuntu system.
  2. Import the Elasticsearch GPG signing key:
1
curl -fsSL https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -


  1. Add the Elasticsearch repository to the system's APT sources:
1
echo "deb https://artifacts.elastic.co/packages/7.x/apt stable main" | sudo tee /etc/apt/sources.list.d/elastic-7.x.list


Note: If you want to install a different version of Elasticsearch, replace "7.x" in the above command with the desired version number.

  1. Update the APT package list:
1
sudo apt update


  1. Install Elasticsearch using the following command:
1
sudo apt install elasticsearch


During the installation process, you may be prompted to enter your password.

  1. Once the installation is complete, Elasticsearch will be started automatically. You can verify the status of the Elasticsearch service by running:
1
sudo systemctl status elasticsearch


You should see that the service is active and running.


That's it! Elasticsearch is now installed and running on your Ubuntu system.