OpenSearch is an open-source search and analytics engine that is widely used for log analytics, real-time application monitoring, and search-based data applications. Follow the steps below to install OpenSearch on Ubuntu 24.04.
Step 1: Update the System
Before starting, ensure your system is up-to-date by running the following commands:
sudo apt update sudo apt upgrade
Step 2: Install Java
OpenSearch requires Java, so you need to install OpenJDK. Run the following command to install OpenJDK 11:
sudo apt install openjdk-11-jdk
Step 3: Download and Install OpenSearch
Add the OpenSearch repository and install the OpenSearch package:
wget https://artifacts.opensearch.org/downloads/opensearch/opensearch-2.10.0-linux-x64.tar.gz tar -zxvf opensearch-2.10.0-linux-x64.tar.gz sudo mv opensearch-2.10.0 /usr/local/opensearch
Step 4: Configure OpenSearch
OpenSearch requires some configuration before starting. Navigate to the OpenSearch directory and edit the configuration file:
cd /usr/local/opensearch/config sudo nano opensearch.yml
Make necessary changes such as setting network.host and discovery.seed_hosts.
Step 5: Start OpenSearch
Once configured, you can start OpenSearch by running the following command:
sudo /usr/local/opensearch/bin/opensearch
Step 6: Verify OpenSearch Installation
To check if OpenSearch is running, navigate to http://localhost:9200 in your web browser. You should see a response from OpenSearch.
VPS Recommendation
If you’re looking for a reliable VPS, visit the following link for VPS Windows services: NetCloud24 VPS Windows Services.