Elasticsearch is a popular open-source search and analytics engine that supports full-text search, authentication, and permission controls. It is written in Java and provides distributed indexing, search, and analytics capabilities. In this tutorial, we will guide you through the process of installing Elasticsearch on EndeavourOS latest.
Before starting the installation process, ensure that the following prerequisites are met:
sudo pacman -S elasticsearch
sudo nano /etc/elasticsearch/elasticsearch.yml
sudo systemctl start elasticsearch.service
systemctl status elasticsearch.service
If Elasticsearch is running, you should see the following output:
● elasticsearch.service - Elasticsearch
Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; disabled; vendor preset: disabled)
Active: active (running) since Wed 2022-01-01 12:34:56 PST; 1min 5s ago
Docs: http://www.elastic.co
Main PID: 12345 (java)
Tasks: 57 (limit: 38410)
Memory: 529.5M
CGroup: /system.slice/elasticsearch.service
├─12345 /usr/share/elasticsearch/jdk/bin/java -Xms512m -Xmx512m -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitia>
└─67890 /usr/share/elasticsearch/modules/x-pack-ml/platform/linux-x86_64/bin/controller
Jan 01 12:34:56 server01 systemd[1]: Started Elasticsearch.
curl -X GET "http://localhost:9200/"
If Elasticsearch is properly configured, you should see the following output:
{
"name" : "node-1",
"cluster_name" : "elasticsearch",
"cluster_uuid" : "X-XXXXX-XXXX-XXXX-XXXXX",
"version" : {
"number" : "7.16.3",
"build_flavor" : "default",
"build_type" : "deb",
"build_hash" : "XXXXXXX",
"build_date" : "2022-01-05T11:34:06.991000Z",
"build_snapshot" : false,
"lucene_version" : "8.10.2",
"minimum_wire_compatibility_version" : "6.8.0",
"minimum_index_compatibility_version" : "6.0.0-beta1"
},
"tagline" : "You Know, for Search"
}
This output confirms that Elasticsearch is installed and properly configured on your EndeavourOS server.
In this tutorial, we explained how to install Elasticsearch on EndeavourOS latest. We also explained how to start the Elasticsearch service and verify the installation. Elasticsearch is a powerful search engine that can be used for various 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!