Setup latest Elastic Search and Kibana on CentOS7 in April 2022

Imagine this: your boss walks in and says, “We need real-time search and analytics. Yesterday.” You’ve got a CentOS 7 box, and you need Elasticsearch and Kibana running—fast, stable, and secure. Sound familiar? Good. Let’s get straight to business.

Step 1: Prerequisites—Don’t Skip These!

Before you touch Elasticsearch, make sure your server is ready. These steps aren’t optional; skipping them will cost you hours later.

  • Set a static IP:

    sudo vi /etc/sysconfig/network-scripts/ifcfg-ens3

    Tip: Double-check your network config. A changing IP will break your cluster.

  • Set a hostname:

    sudo vi /etc/hostname

    Opinion: Use meaningful hostnames. “node1” is better than “localhost”.

  • (Optional) Disable the firewall:

    sudo systemctl disable firewalld --now

    Gotcha: Only do this in a trusted environment. Otherwise, configure your firewall properly.

  • Install Java (Elasticsearch needs it):

    sudo yum install java-1.8.0-openjdk.x86_64 -y

    Tip: Elasticsearch 8.x bundles its own JVM, but installing Java never hurts for troubleshooting.

Step 2: Install Elasticsearch 8.x

Ready for the main event? Let’s get Elasticsearch installed and configured.

  1. Import the Elasticsearch GPG key:

    📚 Continue Reading

    Sign in with your Google or Facebook account to read the full article.
    It takes just 2 seconds!

    Already have an account? Log in here

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *