Skip to main content

Featured

Install Apache 2 on Ubuntu 24.04

Apache2 is one of the most popular and reliable open-source web servers. If you’re running Ubuntu 24.04 and want to host websites or applications, Apache2 is an excellent choice. In this guide, you’ll learn how to install and configure Apache2 step by step.

Install OpenSearch 2.19 on Ubuntu 24.04

OpenSearch is an open-source search and analytics engine derived from Elasticsearch. It is widely used for log analytics, application monitoring, full-text search, and data visualization. In this tutorial, you’ll learn how to install and configure OpenSearch 2.19 on Ubuntu 24.04 using the official Debian package.

Download the Opensearch Debian package for Linux:

Install OpenSearch

Once you have downloaded the .deb package, install it with the following command. Replace <custom-admin-password> with your desired admin password:

sudo env OPENSEARCH_INITIAL_ADMIN_PASSWORD=<custom-admin-password> dpkg -i opensearch-2.19.0-linux-x64.deb

Enable and Start the OpenSearch Service

After installation, enable and start the OpenSearch service:

sudo systemctl enable opensearch
sudo systemctl start opensearch
sudo systemctl status opensearch

The last command will show the service status and confirm that OpenSearch is running correctly.

Test OpenSearch

To test your OpenSearch installation, run a curl command to query the cluster:

curl -X GET http://localhost:9200 -u 'admin:<custom-admin-password>' --insecure

If the installation was successful, you should see a JSON response with cluster information, including the name, UUID, and version of OpenSearch.

Conclusion

You have successfully installed OpenSearch 2.19 on Ubuntu 24.04. Your server is now ready to be used as a search and analytics engine for applications, logs, or data visualization tools like OpenSearch Dashboards. Remember to secure your installation by customizing the admin password and configuring firewall rules before using it in production.

Comments

Popular Posts