Step by Step Guide: How to Install OpenSearch on Debian Latest

In this tutorial, we will guide you on how to install OpenSearch on Debian Latest. OpenSearch is a fork of Elasticsearch, a highly scalable open-source search and analytics engine. OpenSearch is built by AWS and is community-driven, which means it is maintained and developed by many individuals and organizations.

This installation guide will show you how to install OpenSearch on Debian Latest using the command-line interface.

Requirements

Before we proceed, make sure that you have the following requirements:

Step 1: Update the Package List

First, we need to update the package list to ensure that we have the latest software installed. You can achieve this by running the following command:

sudo apt-get update

Step 2: Install Java

OpenSearch requires Java to run. So to install it, run the following command:

sudo apt-get install default-jre

After installation, verify the Java version by running the following command:

java -version

Step 3: Download OpenSearch

Download the latest version of OpenSearch by running the following command:

wget https://artifacts.opensearch.org/releases/bundle/opensearch/latest/OpenSearch-latest-linux-x64.tar.gz

Step 4: Extract OpenSearch

Extract the downloaded OpenSearch file by running the following command:

tar -xzf OpenSearch-latest-linux-x64.tar.gz

Step 5: Create a New User for OpenSearch

As a good practice, create a new user for OpenSearch. You can do this by running the following command:

sudo adduser opensearch

Step 6: Give Permissions to OpenSearch Directory

Navigate to the OpenSearch directory and give ownership to the OpenSearch user by running the following commands:

sudo chown -R opensearch:opensearch /path/to/opensearch

Replace "/path/to/opensearch" with the actual path to the OpenSearch directory.

Step 7: Start OpenSearch

Navigate to the OpenSearch directory and start the OpenSearch process by running the following command:

sudo su opensearch -c './bin/opensearch'

Step 8: Check OpenSearch Status

Check the status of OpenSearch by running the following command:

sudo su opensearch -c './bin/opensearch-status'

You should see "OpenSearch is running" if it is running successfully.

Conclusion

Congratulations! You have successfully installed OpenSearch on Debian Latest. Now you can use OpenSearch to power your search and analytics projects.

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!

Alternatively, for the best virtual desktop, try Shells!