{"id":15233,"date":"2025-07-15T18:25:38","date_gmt":"2025-07-15T12:55:38","guid":{"rendered":"https:\/\/www.skynats.com\/?p=15233"},"modified":"2025-07-15T18:25:41","modified_gmt":"2025-07-15T12:55:41","slug":"how-to-install-etcd-on-ubuntu-24-04","status":"publish","type":"post","link":"https:\/\/www.skynats.com\/blog\/how-to-install-etcd-on-ubuntu-24-04\/","title":{"rendered":"How to Install etcd on Ubuntu 24.04"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">etcd is a distributed key-value store used widely in modern infrastructure stacks like Kubernetes, service meshes, and microservice systems. It&#8217;s reliable, lightweight, and production-ready.This guide focuses on Install etcd on <a href=\"https:\/\/ubuntu.com\/blog\/tag\/ubuntu-24-04-lts\" target=\"_blank\" rel=\"noopener\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-secondary-color\">Ubuntu 24.04.<\/mark><\/a><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Distributed Configuration &amp; Coordination<br>etcd provides strong consistency and distributed coordination using the Raft algorithm\u00a0 making it ideal for shared configs.<br><\/li>\n\n\n\n<li>Service Discovery<br>Applications can register themselves and discover each other via etcd.<br><\/li>\n\n\n\n<li>Critical Component in Kubernetes<br>Kubernetes stores all its cluster data (pods, services, secrets, configs) in etcd.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading has-small-font-size\" id=\"h-steps-to-install-etcd-on-ubuntu-24-04\">Steps to install etcd on Ubuntu 24.04<\/h2>\n\n\n\n<h3 class=\"wp-block-heading has-small-font-size\" id=\"h-update-package-lists\"><strong>Update Package Lists<\/strong><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt-get update<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Download etcd from GitHub<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>wget https:\/\/github.com\/etcd-io\/etcd\/releases\/download\/v3.6.2\/etcd-v3.6.2-linux-amd64.tar.gz<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading has-small-font-size\" id=\"h-extract-the-tar-file\"><strong>Extract the Tar File<\/strong><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>tar -xvzf etcd-v3.6.2-linux-amd64.tar.gz\ncd etcd-v3.6.2-linux-amd64\/<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading has-small-font-size\" id=\"h-move-binaries-to-a-system-path\"><strong>Move Binaries to a System Path<\/strong><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo mv etcd etcdctl \/usr\/local\/bin\/<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Check versions:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>etcd --version\n\netcdctl version<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading has-small-font-size\" id=\"h-create-required-directories\"><strong>Create Required Directories<\/strong><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo mkdir -p \/etc\/etcd \/var\/lib\/etcd<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Create etcd System User<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo useradd -r -s \/sbin\/nologin etcd<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading has-small-font-size\" id=\"h-create-a-systemd-service-file-for-etc\"><strong>Create a systemd Service File for etc<\/strong><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>vim \/etc\/systemd\/system\/etcd.service <\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">[Unit]<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Description=etcd key-value store<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Documentation=https:\/\/etcd.io\/docs\/<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">After=network.target<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">[Service]<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">User=etcd<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Type=notify<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">ExecStart=\/usr\/local\/bin\/etcd \\\\<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;&nbsp;&#8211;name default \\\\<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;&nbsp;&#8211;data-dir \/var\/lib\/etcd \\\\<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;&nbsp;&#8211;listen-client-urls http:\/\/0.0.0.0:2379 \\\\<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;&nbsp;&#8211;advertise-client-urls http:\/\/localhost:2379<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Restart=on-failure<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">LimitNOFILE=40000<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">[Install]<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">WantedBy=multi-user.target<\/p>\n\n\n\n<h3 class=\"wp-block-heading has-small-font-size\" id=\"h-reload-systemd-and-enable-the-service\"><strong>Reload systemd and Enable the Service<\/strong><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo systemctl daemon-reload\nsudo systemctl enable etcd<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading has-small-font-size\" id=\"h-fix-permissions-important\"><strong>\u00a0Fix Permissions (important)<\/strong><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo chown -R etcd:etcd \/var\/lib\/etcd\nsudo chmod 700 \/var\/lib\/etcd<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading has-small-font-size\" id=\"h-start-etcd\"><strong>\u00a0Start etcd<\/strong><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo systemctl start etcd<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Check its status:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo systemctl status etcd<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">If needed, view logs:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>journalctl -xeu etcd.service<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading has-small-font-size\" id=\"h-test-etcd-works\"><strong>Test etcd Works<\/strong><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>etcdctl put hello \"Ubuntu 24.04\"\netcdctl get hello<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Expected output:<br>hello<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Ubuntu 24.04<\/p>\n\n\n\n<h3 class=\"wp-block-heading has-small-font-size\" id=\"h-conclusion\"><strong>conclusion<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">You have successfully installed and configured etcd on Ubuntu 24.04 from the official release, set it up as a systemd service, and verified that it\u2019s functioning correctly. This setup forms a solid foundation for building reliable, distributed systems. Whether you&#8217;re using etcd as the backbone for Kubernetes, for service discovery in microservices, or as a centralized configuration store, it provides the consistency and reliability essential in modern infrastructure. With etcd running smoothly, you&#8217;re now well-equipped to scale your system, add clustering, or secure communication using TLS \u2014 all while keeping your data consistent and your services coordinated.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you need expert assistance with Installing etcd on Ubuntu 24.04 or setting up your infrastructure reliably, our team is here to help. Skynats offers professional <a href=\"https:\/\/www.skynats.com\/devops-support\/\">DevOps support services<\/a> to streamline your deployment and ensure high availability. contact us today to get started!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>etcd is a distributed key-value store used widely in modern infrastructure stacks like Kubernetes, service meshes, and microservice systems. It&#8217;s reliable, lightweight, and production-ready.This guide focuses on Install etcd on Ubuntu 24.04. Steps to install etcd on Ubuntu 24.04 Update Package Lists Download etcd from GitHub Extract the Tar File Move Binaries to a System [&hellip;]<\/p>\n","protected":false},"author":12,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[1064,1065,899],"class_list":["post-15233","post","type-post","status-publish","format-standard","hentry","category-blog","tag-devops-support-services","tag-install-etcd-ubuntu-24-04","tag-ubuntu-24-04"],"_links":{"self":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/posts\/15233","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/users\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/comments?post=15233"}],"version-history":[{"count":3,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/posts\/15233\/revisions"}],"predecessor-version":[{"id":15239,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/posts\/15233\/revisions\/15239"}],"wp:attachment":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/media?parent=15233"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/categories?post=15233"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/tags?post=15233"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}