Etcd is a distributed key-value store that provides a reliable and accessible way to store configuration data, metadata, and state information. It has become an essential component for building cloud-native systems and microservices. This tutorial will guide you through the installation process of etcd on Elementary OS Latest.
sudo
privilegesBefore proceeding with the installation of etcd, it is essential to have your system updated and upgraded. You can do this with the following command:
sudo apt update && sudo apt upgrade -y
Now, let's download the etcd binary. Inside Github releases page for etcd, find the latest stable release version for your system architecture. In this tutorial, we will use version 3.5.0 and Linux AMD64.
wget https://github.com/coreos/etcd/releases/download/v3.5.0/etcd-v3.5.0-linux-amd64.tar.gz
After downloading, extract the etcd
and etcdctl
binary files from the tarball.
tar -xzf etcd-v3.5.0-linux-amd64.tar.gz
cd etcd-v3.5.0-linux-amd64
Now, we need to move the etcd
and etcdctl
binaries to the /usr/local/bin
directory in order to install etcd.
sudo mv etcd /usr/local/bin/
sudo mv etcdctl /usr/local/bin/
Next, we need to set some environment variables that etcd requires for proper functionality. Open up your favorite text editor and create a new file called /etc/profile.d/etcd.sh
.
sudo nano /etc/profile.d/etcd.sh
Now add the following content to the file.
export ETCD_UNSUPPORTED_ARCH=arm
export ETCD_UNSUPPORTED_ARCH=noarch
Save and close the file.
Finally, we can start etcd for the first time. Etcd listens on port 2379
by default. Start etcd service with the following command.
sudo etcd
In this tutorial, we have shown you how to install etcd on Elementary OS Latest. Etcd is an essential tool for managing distributed systems, and we hope this tutorial has been helpful. For more information about etcd and its configuration, visit the official etcd documentation.
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!