To install Elasticsearch on CentOS Stream 10, follow these simple steps to get it up and running.
Step 1 : Run the following command to update your system's package index:
Step 2 : Elasticsearch requires Java to run. Install it with:
Step 3 : Verify the installed Java version:
Step 4 : Add the Elasticsearch PGP key:
Step 5 : Create a new repository file:
Add the following content:
Step 6 : Install Elasticsearch using:
Step 7 : Start the Elasticsearch service:
Step 8 : Enable Elasticsearch to start on boot:
Step 9 : Open the configuration file:
Find and set the following line:
Step 10 : Restart the Elasticsearch service to apply changes:
Step 11 : Verify the service is active and running:
Step 12 : Reset the default elastic
user password:
Step 13 : Test the setup by running the following command (replace password
with the reset password):
Congratulations! You have successfully installed and configured Elasticsearch on CentOS Stream 10.