---
title: "How to Install Terraform on Ubuntu Server Latest - CloudBlast"
description: "How to Install Terraform on Ubuntu Server Latest"
url: "https://cloudblast.io/zh/article/How-to-Install-Terraform-on-Ubuntu-Server-Latest"
language: "zh-CN"
---

博客

# How to Install Terraform on Ubuntu Server Latest

注册即享 5€ 免费余额

注册 CloudBlast，即可获得 5€ 云端积分用于部署您的 VPS

[领取 5€ 免费额度](https://console.cloudblast.io/auth/login?ref=2)

-   [返回](https://cloudblast.io/zh)
-   [所有文章](https://cloudblast.io/zh/blog)

2024-09-22

### How to Install Terraform on Ubuntu Server Latest

tutorials

In this tutorial, we will guide you on how to install Terraform on Ubuntu Server Latest.

**Prerequisites**

Before starting with the installation process, make sure that you have the following:

-   Ubuntu Server Latest
-   User account with root or sudo privileges
-   Updated system packages

**Step 1: Download Terraform**

First, download the latest version of Terraform from the official website. You can do this by running the following command:

> wget https://releases.hashicorp.com/terraform/1.0.0/terraform\_1.0.0\_linux\_amd64.zip

This will download the latest version of Terraform to your Ubuntu Server.

**Step 2: Extract Terraform**

After downloading Terraform, extract it to a directory that is in your system’s path. You can use the following command to extract Terraform:

> sudo unzip terraform\_1.0.0\_linux\_amd64.zip -d /usr/local/bin/

**Step 3: Verify Terraform**

After extracting Terraform, verify its installation by running the following command:

> terraform -version

This command should return the version of Terraform that is now installed on your Ubuntu Server.

**Step 4: Set Up the Environment Variables**

To set up the environment variables for Terraform, run the following command:

> echo "export TF\_VAR\_access\_key=your\_access\_key" >> ~/.bashrc

> echo "export TF\_VAR\_secret\_key=your\_secret\_key" >> ~/.bashrc

Remember to replace _your\_access\_key_ and _your\_secret\_key_ with your AWS access key and secret key.

**Conclusion**

Congratulations! You have now installed Terraform on your Ubuntu Server Latest. You are now ready to create and manage your infrastructure on AWS or other cloud providers with Terraform.

分享

## 继续阅读

[2026-07-25 How to Install and Set Up Mailcow on Ubuntu and Debian VPS tutorials](https://cloudblast.io/article/how-to-install-and-setup-mailcow-on-ubuntu-and-debian-vps)

[2026-07-25 How to Install Chatwoot on the Latest Ubuntu and Debian Server tutorials](https://cloudblast.io/article/how-to-install-chatwoot-on-ubuntu-and-debian-server)

[2026-07-25 How to Install Mattermost on the Latest Ubuntu and Debian Server tutorials](https://cloudblast.io/article/how-to-install-mattermost-on-ubuntu-and-debian-server)

[2026-07-25 How to Install RustDesk on the Latest Ubuntu and Debian Server tutorials](https://cloudblast.io/article/how-to-install-rustdesk-on-ubuntu-and-debian-server)
