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.
Before we proceed, make sure that you have the following requirements:
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
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
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
Extract the downloaded OpenSearch file by running the following command:
tar -xzf OpenSearch-latest-linux-x64.tar.gz
As a good practice, create a new user for OpenSearch. You can do this by running the following command:
sudo adduser opensearch
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.
Navigate to the OpenSearch directory and start the OpenSearch process by running the following command:
sudo su opensearch -c './bin/opensearch'
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.
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!