Tips Cách tạo VPS miễn phí 1 năm trên Amazon AWS

thaitoripper

New member
** Cách tạo VPS miễn phí 1 năm trên Amazon AWS **

## Giới thiệu

Máy chủ riêng ảo (VPS) là một dịch vụ điện toán đám mây cung cấp máy ảo (VM) được cách ly với các VM khác trên cùng một máy chủ vật lý.VPSS thường được sử dụng để lưu trữ các trang web, ứng dụng và các dịch vụ khác.

Amazon Web Services (AWS) là một nền tảng điện toán đám mây cung cấp một loạt các dịch vụ, bao gồm cả VPSS.Trong hướng dẫn này, chúng tôi sẽ chỉ cho bạn cách tạo VPS miễn phí 1 năm trên AWS.

## Yêu cầu

Để làm theo hướng dẫn này, bạn sẽ cần những điều sau đây:

* Tài khoản AWS
* Thẻ tín dụng hoặc phương thức thanh toán khác
* Một trình duyệt web

## Bước 1: Tạo tài khoản AWS

Nếu bạn chưa có tài khoản AWS, bạn có thể tạo một tài khoản miễn phí tại [trang web AWS] (https://aws.amazon.com/).

Khi bạn đã tạo một tài khoản, bạn sẽ cần xác minh địa chỉ email của mình.

## Bước 2: Kích hoạt dịch vụ Amazon EC2

Dịch vụ Amazon Consastic Compute Cloud (EC2) cung cấp VPSS trên AWS.Để tạo VPS, bạn sẽ cần bật dịch vụ EC2.

Để làm điều này, hãy truy cập [Bảng điều khiển quản lý AWS] (https://console.aws.amazon.com/) và nhấp vào tab ** Dịch vụ **.Sau đó, nhấp vào ** EC2 **.

Trên bảng điều khiển EC2, nhấp vào nút ** bật dịch vụ **.

## Bước 3: Tạo một cặp khóa

Một cặp khóa là một tập hợp các khóa công khai và riêng tư được sử dụng để xác thực kết nối SSH của bạn với VPS của bạn.

Để tạo một cặp khóa, hãy truy cập [Bảng điều khiển quản lý AWS] (https://console.aws.amazon.com/) và nhấp vào tab ** Dịch vụ **.Sau đó, nhấp vào ** EC2 **.

Trên bảng điều khiển EC2, nhấp vào tab Các cặp khóa ** **.

Nhấp vào nút ** Tạo cặp khóa **.

Nhập tên cho cặp khóa của bạn và nhấp vào nút ** Tạo **.

AWS sẽ tải tệp .pem vào máy tính của bạn.Tệp này chứa khóa riêng của bạn.Giữ tệp này an toàn vì bạn sẽ cần nó để kết nối với VPS của bạn.

## Bước 4: Khởi chạy VPS

Bây giờ bạn đã tạo một cặp khóa, bạn có thể khởi chạy VPS.

Để làm điều này, hãy truy cập [Bảng điều khiển quản lý AWS] (https://console.aws.amazon.com/) và nhấp vào tab ** Dịch vụ **.Sau đó, nhấp vào ** EC2 **.

Trên bảng điều khiển EC2, nhấp vào nút ** Khởi chạy **.

Chọn hình ảnh ** Amazon Linux 2 ami (HVM) **.

Đối với loại ** loại ví dụ **, chọn một phiên bản T2.micro.Đây là một ví dụ đủ điều kiện cấp miễn phí cung cấp 1 lõi CPU và 1 GB RAM.

Đối với mạng ** **, chọn VPC mặc định.

Đối với mạng con ** **, chọn một mạng con trong VPC mặc định.

Đối với nhóm bảo mật ** **, hãy tạo một nhóm bảo mật mới và thêm các quy tắc trong nước sau:

* TCP 22 từ bất cứ đâu

Nhấp vào nút ** Đánh giá và khởi chạy **.

Trên trang ** đánh giá lại Trang khởi chạy **, nhấp vào nút ** Khởi chạy **.

AWS sẽ ra mắt VPS của bạn.Có thể sẽ mất vài phút.

## Bước 5: Kết nối với VPS của bạn

Khi VPS của bạn được khởi chạy, bạn có thể kết nối với nó bằng SSH.

Để thực hiện việc này, hãy mở một cửa sổ thiết bị đầu cuối trên máy tính của bạn và nhập lệnh sau:

`` `
ssh -i <path-to-your-private-key> EC2-user@<của bạn-VPS-Public-IP>
`` `

Thay thế <đường dẫn đến bạn-private-key> bằng đường dẫn đến tệp .pem mà bạn đã tải xuống ở bước 3. Thay thế <của bạn-VPS-Public-IP> bằng địa chỉ IP công khai của VPS của bạn.

Bạn sẽ được nhắc nhập mật khẩu cho VPS của mình.Mật khẩu mặc định là ** mật khẩu **.

Khi bạn đã đăng nhập thành công vào VPS của mình, bạn có thể bắt đầu sử dụng nó.

## Phần kết luận

Trong hướng dẫn này, bạn đã học cách tạo VPS miễn phí 1 năm trên AWS.Bây giờ bạn có thể sử dụng VPS của mình để lưu trữ các trang web, ứng dụng và các dịch vụ khác.

## hashtags

* #Aws
* #Vps
* #điện toán đám mây
* #miễn phí
* #hosting
=======================================
**How to Create a 1-Year Free VPS on Amazon AWS**

## Introduction

A virtual private server (VPS) is a cloud computing service that provides a virtual machine (VM) that is isolated from other VMs on the same physical server. VPSs are often used for hosting websites, applications, and other services.

Amazon Web Services (AWS) is a cloud computing platform that offers a wide range of services, including VPSs. In this tutorial, we will show you how to create a 1-year free VPS on AWS.

## Requirements

To follow this tutorial, you will need the following:

* An AWS account
* A credit card or other payment method
* A web browser

## Step 1: Create an AWS Account

If you don't already have an AWS account, you can create one for free at the [AWS website](https://aws.amazon.com/).

Once you have created an account, you will need to verify your email address.

## Step 2: Enable the Amazon EC2 Service

The Amazon Elastic Compute Cloud (EC2) service provides VPSs on AWS. To create a VPS, you will need to enable the EC2 service.

To do this, go to the [AWS Management Console](https://console.aws.amazon.com/) and click on the **Services** tab. Then, click on **EC2**.

On the EC2 dashboard, click on the **Enable Services** button.

## Step 3: Create a Key Pair

A key pair is a set of public and private keys that are used to authenticate your SSH connection to your VPS.

To create a key pair, go to the [AWS Management Console](https://console.aws.amazon.com/) and click on the **Services** tab. Then, click on **EC2**.

On the EC2 dashboard, click on the **Key Pairs** tab.

Click on the **Create Key Pair** button.

Enter a name for your key pair and click on the **Create** button.

AWS will download a .pem file to your computer. This file contains your private key. Keep this file safe as you will need it to connect to your VPS.

## Step 4: Launch a VPS

Now that you have created a key pair, you can launch a VPS.

To do this, go to the [AWS Management Console](https://console.aws.amazon.com/) and click on the **Services** tab. Then, click on **EC2**.

On the EC2 dashboard, click on the **Launch Instance** button.

Select the **Amazon Linux 2 AMI (HVM)** image.

For the **Instance Type**, select a t2.micro instance. This is a free tier eligible instance that offers 1 CPU core and 1 GB of RAM.

For the **Network**, select the default VPC.

For the **Subnet**, select a subnet in the default VPC.

For the **Security Group**, create a new security group and add the following inbound rules:

* TCP 22 from anywhere

Click on the **Review and Launch** button.

On the **Review Instance Launch** page, click on the **Launch** button.

AWS will launch your VPS. This may take a few minutes.

## Step 5: Connect to Your VPS

Once your VPS is launched, you can connect to it using SSH.

To do this, open a terminal window on your computer and type the following command:

```
ssh -i <path-to-your-private-key> ec2-user@<your-VPS-public-IP>
```

Replace the <path-to-your-private-key> with the path to the .pem file that you downloaded in Step 3. Replace the <your-VPS-public-IP> with the public IP address of your VPS.

You will be prompted to enter the password for your VPS. The default password is **password**.

Once you have successfully logged in to your VPS, you can start using it.

## Conclusion

In this tutorial, you learned how to create a 1-year free VPS on AWS. You can now use your VPS to host websites, applications, and other services.

## Hashtags

* #Aws
* #Vps
* #cloud computing
* #Free
* #hosting
 
Join ToolsKiemTrieuDoGroup
Back
Top
AdBlock Detected

We get it, advertisements are annoying!

Sure, ad-blocking software does a great job at blocking ads, but it also blocks useful features of our website. For the best site experience please disable your AdBlocker.

I've Disabled AdBlock