Exclusive Metin2 game shield on FreeBSD: Automatic siege mode, VIP list, and whitelist from your dashboard. See how it works
Create a server

Guide

How to Install Elasticsearch on Ubuntu

Elasticsearch indexes and searches documents at scale. On a test VPS you can run a single node from the official package.

Steps

  1. Add Elastic’s key and repo (8.x example):

    sudo apt update
    sudo apt install -y apt-transport-https wget gnupg
    wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo gpg --dearmor -o /usr/share/keyrings/elasticsearch-keyring.gpg
    echo "deb [signed-by=/usr/share/keyrings/elasticsearch-keyring.gpg] https://artifacts.elastic.co/packages/8.x/apt stable main" | sudo tee /etc/apt/sources.list.d/elastic-8.x.list
  2. Install and start the service:

    sudo apt update
    sudo apt install -y elasticsearch
    sudo systemctl enable --now elasticsearch
  3. Hit the local API (8.x may require install-time credentials — check logs if it fails):

    curl -s http://127.0.0.1:9200 || curl -sk https://127.0.0.1:9200

Tips

  • Elasticsearch is RAM-hungry — leave at least 2 GB free on a test VPS.
  • Do not expose 9200 to the internet without TLS, auth and a firewall.

ext step

Search node with enough memory: Deploy your Cloud VPS.

Related guides