This tutorial will guide you through the process of installing Elasticsearch on Fedora Server Latest.
Before we proceed with the installation, it's always a good practice to update the system software packages to ensure that we have the latest updates.
To do this, launch a terminal window and run the following command:
sudo dnf update -y
Enter the root password when prompted.
Elasticsearch requires Java to run, so we need to install it first. To install Java, run the following command:
sudo dnf install java-1.8.0-openjdk -y
To download Elasticsearch, visit the official Elasticsearch website at https://www.elastic.co/downloads/elasticsearch and navigate to the "Latest Version" section.
Select the appropriate package for your system environment. In our case, we will go with the RPM package.
Run the following command to download the package:
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.14.0-x86_64.rpm
Now that we have the package, we can install it using the following command:
sudo rpm -i elasticsearch-7.14.0-x86_64.rpm
Before we start Elasticsearch, we need to configure it.
Open the Elasticsearch configuration file using a text editor:
sudo nano /etc/elasticsearch/elasticsearch.yml
Make the following changes to the file:
network.host
configuration to 0.0.0.0
to enable remote access to Elasticsearch.discovery.seed_hosts
configuration to your server IP address.Save the changes and exit the text editor.
To start Elasticsearch, run the following command:
sudo systemctl start elasticsearch
To check the status of Elasticsearch, run the following command:
sudo systemctl status elasticsearch
If everything is ok, you should see the status as "active".
To configure Elasticsearch to start automatically at startup, run the following command:
sudo systemctl enable elasticsearch
In this tutorial, we have seen how to install and configure Elasticsearch on Fedora Server. Elasticsearch is now up and running on your machine, and you can start using it for your applications.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!