In this tutorial, we will go through the process of installing etcd on Fedora Server Latest. etcd is a distributed key-value store used as a reliable way to store data across a network of machines. It is used in production by several companies, including CoreOS and Red Hat.
First, let us update the system packages by running the following command:
sudo dnf update
Next, we need to add the etcd repository to the system. We will do this by creating a file in the /etc/yum.repos.d/
directory. You can do this by running the following command:
sudo nano /etc/yum.repos.d/etcd.repo
Add the following contents to the file:
[etcd]
name=etcd
baseurl=https://download.opensuse.org/repositories/network:/etcd/Fedora_32/network:etcd.repo
enabled=1
gpgcheck=0
Save and close the file.
Now we can install etcd by running the following command:
sudo dnf install etcd
Once installed, we need to start the etcd service and enable it to start on boot. You can do this by running the following commands:
sudo systemctl start etcd
sudo systemctl enable etcd
You can verify that the service is running by running the following command:
sudo systemctl status etcd
If the service is running, you should see output similar to the following:
● etcd.service - etcd - highly-available key value store
Loaded: loaded (/usr/lib/systemd/system/etcd.service; enabled; vendor preset: disabled)
Active: active (running) since Fri 2021-04-02 15:51:54 UTC; 10s ago
Main PID: 30118 (etcd)
Tasks: 10 (limit: 2351)
Memory: 20.1M
CPU: 639ms
CGroup: /system.slice/etcd.service
└─30118 /usr/bin/etcd
To test that the etcd service is working correctly, we can use the etcdctl command-line tool. You can start by adding a key to the etcd store by running the following command:
etcdctl put key1 value1
You can then retrieve the value of the key by running:
etcdctl get key1
If the installation was successful, you should see the value value1
printed on the console.
In this tutorial, we have gone through the process of installing etcd on Fedora Server Latest. We have also tested that the installation was successful by adding and retrieving a key from the etcd store.
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!