aster.cloud aster.cloud
  • /
  • Platforms
    • Public Cloud
    • On-Premise
    • Hybrid Cloud
    • Data
  • Architecture
    • Design
    • Solutions
    • Enterprise
  • Engineering
    • Automation
    • Software Engineering
    • Project Management
    • DevOps
  • Programming
    • Learning
  • Tools
  • About
  • /
  • Platforms
    • Public Cloud
    • On-Premise
    • Hybrid Cloud
    • Data
  • Architecture
    • Design
    • Solutions
    • Enterprise
  • Engineering
    • Automation
    • Software Engineering
    • Project Management
    • DevOps
  • Programming
    • Learning
  • Tools
  • About
aster.cloud aster.cloud
  • /
  • Platforms
    • Public Cloud
    • On-Premise
    • Hybrid Cloud
    • Data
  • Architecture
    • Design
    • Solutions
    • Enterprise
  • Engineering
    • Automation
    • Software Engineering
    • Project Management
    • DevOps
  • Programming
    • Learning
  • Tools
  • About
  • Software Engineering

How-To: Install And Configure Elasticsearch On Ubuntu 22.04

  • aster.cloud
  • October 6, 2022
  • 2 minute read

This guide contains instructions on how to install and perform basic configuration of Elasticsearch on a Ubuntu 22.04 machine. The following setup is for development and testing purposes.

Prerequisites

  • Ubuntu 22.04
  • Access to a Terminal or Shell Console
  • Java 8 or 11 or later is installed

Installation

01. Open a terminal


Partner with aster.cloud
for your next big idea.
Let us know here.



From our partners:

CITI.IO :: Business. Institutions. Society. Global Political Economy.
CYBERPOGO.COM :: For the Arts, Sciences, and Technology.
DADAHACKS.COM :: Parenting For The Rest Of Us.
ZEDISTA.COM :: Entertainment. Sports. Culture. Escape.
TAKUMAKU.COM :: For The Hearth And Home.
ASTER.CLOUD :: From The Cloud And Beyond.
LIWAIWAI.COM :: Intelligence, Inside and Outside.
GLOBALCLOUDPLATFORMS.COM :: For The World's Computing Needs.
FIREGULAMAN.COM :: For The Fire In The Belly Of The Coder.
ASTERCASTER.COM :: Supra Astra. Beyond The Stars.
BARTDAY.COM :: Prosperity For Everyone.

02. Download the installer via WGet. It is around 500Mb in size.

$ wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-8.4.2-linux-x86_64.tar.gz
$ wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-8.4.2-linux-x86_64.tar.gz.sha512

03. Validate the downloaded file to assure there are no corrupted files.

$ shasum -a 512 -c elasticsearch-8.4.2-linux-x86_64.tar.gz.sha512

04. Extract the installer

$ tar -xvf elasticsearch-8.4.2-linux-x86_64.tar.gz

05. Navigate to the Elasticsearch directory

$ cd elasticsearch-8.4.2/

06. Run the Elasticsearch. It will continue to run until stopped manually using Ctrl-Z.

$ ./bin/elasticsearch

To run as a daemon use the following.

$ ./bin/elasticsearch -d -p pid

This creates a PID file in the elasticsearch directory. This is the PID that needs to be killed to stop the process.

Configuration

01. Navigate to the Elasticsearch directory, and edit the configuration file

$ cd {{elasticsearch-directory}}
$ nano config/elasticsearch.yml

02. Update the following section depending on the use case. We turn off the xpack.security.enabled setting to false only on a development environment.

# Temporary set this as false for development environment
xpack.security.enabled: false

# Elasticsearch Port
# Default port is 9200
# Http.port: 9200

# Data Path
# path.data: /path/to/data

# Log Path
# path.logs: /path/to/logs

# Node Name
node.name: geek-project-node-development-001

# Cluster Name
cluster.name: geek-project-cluster-development

03. After making changes, stop Elasticsearch and restart the Elasticsearch program.

04. On a separate terminal, run the following to check the status. If JSON response is returned, the basic installation is completed.

$ curl 'http://127.0.0.1:9200/?pretty'

It will output something like

{
  "name" : "ubuntu-bionic",
  "cluster_name" : "elasticsearch",
  "cluster_uuid" : "aRxfA2XCRPGcWNKIzfBCEg",
  "version" : {
    "number" : "7.1.1",
    "build_flavor" : "default",
    "build_type" : "tar",
    "build_hash" : "7a013de",
    "build_date" : "2019-05-23T14:04:00.380842Z",
    "build_snapshot" : false,
    "lucene_version" : "8.0.0",
    "minimum_wire_compatibility_version" : "6.8.0",
    "minimum_index_compatibility_version" : "6.0.0-beta1"
  },
  "tagline" : "You Know, for Search"
}

Read More  Modern Application Development: A Step-by-Step Guide

For enquiries, product placements, sponsorships, and collaborations, connect with us at [email protected]. We'd love to hear from you!

Our humans need coffee too! Your support is highly appreciated, thank you!

aster.cloud

Related Topics
  • Databases
  • Elasticsearch
  • Tutorials
You May Also Like
View Post
  • Software Engineering
  • Technology

Claude 3.7 Sonnet and Claude Code

  • February 25, 2025
View Post
  • Engineering
  • Software Engineering

This Month in Julia World

  • January 17, 2025
View Post
  • Engineering
  • Software Engineering

Google Summer of Code 2025 is here!

  • January 17, 2025
View Post
  • Software Engineering

5 Books Every Beginner Programmer Should Read

  • July 25, 2024
Ruby
View Post
  • Software Engineering

How To Get Started With A Ruby On Rails Project – A Developer’s Guide

  • January 27, 2024
View Post
  • Engineering
  • Software Engineering

5 Ways Platform Engineers Can Help Developers Create Winning APIs

  • January 25, 2024
Clouds
View Post
  • Cloud-Native
  • Platforms
  • Software Engineering

Microsoft Releases Azure Migrate Assessment Tool For .NET Application

  • January 14, 2024
View Post
  • Software Engineering
  • Technology

It’s Time For Developers And Enterprises To Build With Gemini Pro

  • December 21, 2023

Stay Connected!
LATEST
  • 1
    Apple services deliver powerful features and intelligent updates to users this autumn
    • June 11, 2025
  • By the numbers: Use AI to fill the IT skills gap
    • June 11, 2025
  • 3
    Crayon targets mid-market gains with expanded Google Cloud partnership
    • June 10, 2025
  • Apple-WWDC25-Apple-Intelligence-hero-250609 4
    Apple Intelligence gets even more powerful with new capabilities across Apple devices
    • June 9, 2025
  • Apple-WWDC25-Liquid-Glass-hero-250609_big.jpg.large_2x 5
    Apple introduces a delightful and elegant new software design
    • June 9, 2025
  • Robot giving light bulb to businessman. Man sitting with laptop on money coins flat vector illustration. Finance, help of artificial intelligence concept for banner, website design or landing web page 6
    FinOps X 2025: IT cost management evolves for AI, cloud
    • June 9, 2025
  • 7
    AI security and compliance concerns are driving a private cloud boom
    • June 9, 2025
  • 8
    Apple supercharges its tools and technologies for developers to foster creativity, innovation, and design
    • June 9, 2025
  • 9
    It’s time to stop debating whether AI is genuinely intelligent and focus on making it work for society
    • June 8, 2025
  • cookies-food-photographer-jennifer-pallian-OfdDiqx8Cz8-unsplash 10
    What is a cookie?
    • June 6, 2025
about
Hello World!

We are aster.cloud. We’re created by programmers for programmers.

Our site aims to provide guides, programming tips, reviews, and interesting materials for tech people and those who want to learn in general.

We would like to hear from you.

If you have any feedback, enquiries, or sponsorship request, kindly reach out to us at:

[email protected]
Most Popular
  • person-working-html-computer 1
    8 benefits of AI as a service
    • June 6, 2025
  • 2
    Cloud breaches are surging, but enterprises aren’t quick enough to react
    • June 6, 2025
  • 3
    Where is the cloud headed?
    • June 6, 2025
  • 4
    Enterprises are keen on cloud repatriation – but not for all workloads
    • June 4, 2025
  • 5
    The Summer Adventures : Hiking and Nature Walks Essentials
    • June 2, 2025
  • /
  • Technology
  • Tools
  • About
  • Contact Us

Input your search keywords and press Enter.