How To Install Elasticsearch on Ubuntu 24.04

To install Elasticsearch on your Ubuntu 24.04 system, follow these steps:

Step 1 : First, ensure your package list and installed packages are up to date:

Step 2 : Install apt-transport-https

Step 3 : Install Elasticsearch GPG Key

Step 4 : Add the Elasticsearch repository

Step 5 : Update package index again

Step 6 : Install Elasticsearch

Step 7 : Open /etc/elasticsearch/elasticsearch.yml

And edit the line xpack.security.enabled

Step 8 : Start Elasticsearch

Step 9 : Enable Elasticsearch to start on boot

Step 10 : Reset the password for the elastic user

Step 11 : Verify installation by accessing Elasticsearch via curl

Congratulations! You have successfully installed and configured Elasticsearch on your Ubuntu 24.04 system.