Introduction
OpenSearch is a community-driven search and analytics suite that is derived from Elasticsearch and Kibana. It provides a powerful platform for real-time data analysis and full-text search capabilities. This guide will walk you through the installation of OpenSearch on Rocky Linux 9, which can be effectively utilized on a Windows VPS UK for robust performance and reliability.
Prerequisites
- A Rocky Linux 9 server with root access
- Basic knowledge of Linux commands
- Java Development Kit (JDK) installed (OpenJDK recommended)
Step 1: Update Your System
Before installation, ensure your system is up to date:
sudo dnf update -y
Step 2: Install OpenJDK
If you do not have Java installed, you can install OpenJDK with the following command:
sudo dnf install java-11-openjdk-devel -y
Verify the installation:
java -version
Step 3: Download OpenSearch
Download the latest version of OpenSearch. You can find the latest version on the official OpenSearch downloads page. Use the following commands to download and extract OpenSearch:
wget https://artifacts.opensearch.org/releases/bundle/opensearch/2.3.0/opensearch-2.3.0-linux-x64.tar.gz
tar -xzf opensearch-2.3.0-linux-x64.tar.gz
Step 4: Configure OpenSearch
Navigate to the OpenSearch directory and edit the configuration file:
cd opensearch-2.3.0/config
nano opensearch.yml
In this file, you can configure various settings such as cluster name, node name, and network settings. For example:
cluster.name: my-cluster
node.name: my-node
network.host: 0.0.0.0
Step 5: Start OpenSearch
To start OpenSearch, navigate back to the OpenSearch directory and run the following command:
./opensearch-tar-install.sh
This script will start OpenSearch, and you can monitor the logs in the logs
directory.
Step 6: Configure Firewall
If you have a firewall enabled, make sure to allow traffic on the OpenSearch port (default is 9200):
sudo firewall-cmd --add-port=9200/tcp --permanent
sudo firewall-cmd --reload
Step 7: Access OpenSearch
Open your web browser and navigate to http://your_server_ip:9200
. You should see a response from OpenSearch indicating that it is running:
{
"name" : "my-node",
"cluster_name" : "my-cluster",
"cluster_uuid" : "xxxxxx",
"version" : {
"number" : "2.3.0",
"build_flavor" : "default",
"build_type" : "tar",
"build_hash" : "xxxxxx",
"build_date" : "2023-06-01T00:00:00Z",
"build_snapshot" : false,
"lucene_version" : "9.4.1"
}
}
Step 8: Conclusion
You have successfully installed OpenSearch on Rocky Linux 9, providing a powerful platform for search and analytics. This setup is especially effective when deployed on a Windows VPS. For further options, explore various VPS UK Windows solutions, including Windows Virtual Private Server Hosting and Windows VPS Hosting UK for optimal performance.