Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to set up a Linux server on Amazon AWS

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly shows you "how to set up a Linux server on Amazon AWS", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "how to set up a Linux server on Amazon AWS" this article.

AWS (Amazon Web Services) is one of the leading cloud server providers in the world. You can use the AWS platform to set up the server in a minute. On AWS, you can fine-tune many technical details of the server, such as the number of CPU, memory and disk space, disk type (faster SSD or classic IDE), etc. One thing about AWS * * is that you only have to pay for the services you use. Before you start, AWS offers a special account called "Free Tier". You can use the AWS technology service for free for a year, but there are some minor restrictions, for example, you can't use the server for more than 750 hours a month, and they will charge you for more than that. You can view all the relevant rules on the aws website.

Because my article is about creating a Linux server on AWS, having a "Free Tier" account is a prerequisite. To register for an account, you can use this link. Please note that you need to enter credit card details when creating an account.

Let's assume that you have created a "Free Tier" account.

Before you continue, you must understand some terms in AWS to understand the settings:

EC2 (Elastic Compute Cloud): this term is used for virtual machines.

AMI (Amazon machine image): represents an operating system instance.

EBS (Elastic Block Storage): a type of storage environment in AWS.

Log in to the AWS console through the following link: https://console.aws.amazon.com/.

The AWS console will look like this:

Amazon AWS console

Set up Linux VM in AWS

1. Create an EC2 instance: before you start installing the system, you must create a virtual machine in AWS. To create a virtual machine, under the Compute compute menu, click EC2:

Create an EC2 instance

2. Now click the "start instance" Launch Instance button under create instance Create instance.

Launch the EC2 instance

3. Now, when you are using a "Free Tier" account, then * select the "Free Tier" radio button so that AWS can filter out instances that can be used for free. This allows you to avoid paying for AWS's resources.

Select Free Tier instances only

4. To continue, select the following options:

Select an AMI (Amazon Machine Image) in the Classic instance wizard, and then choose to use Red Hat Enterprise Linux 7.2 (HVM), SSD storage

B. Select "t2.micro" as the instance details.

C. Configure instance details: do not change anything, just click next.

D, add storage: don't change anything, just click next, because at this point we will use the default 10 (GiB) hard drive.

E, add tags: don't change anything, just click next.

F, configure the security group: now select port 22 for ssh so that you can access this server anywhere.

Configure AWS server

Select the "View and start Review and Launch" button.

If all the details are correct, click the "start Launch" button.

I, after clicking the "start Launch" button, the system will pop up a window to create the "key pair" as follows: select the option "create key pair create a new key pair", give the key pair a name, and then download it. This key pair is required when connecting to the server using ssh. *, click "start instance Launch Instance" button.

Create Key pair

J. Click the "start instance Launch Instance" button and go to the service in the upper left corner. Select "calculate compute"-> "EC2". Now click "run instance Running Instances":

Go to the running EC2 instance

Now you can see that the status of your new VM is "running running". Select an instance and make a note of the "public DNS name Public DNS" required to log in to the server.

Public DNS value of the VM

Now you have finished creating a VM running Linux. To connect to the server, follow these steps.

Connect to an EC2 instance from Windows

1. First of all, you need to have putty gen and Putty exe to connect to the server from Windows (or the SSH command on Linux). You can download putty through the link below.

2. Now open puttygen: puttygen.exe.

3. You need to click the "Load" button to browse and select the key pair file (pem file) you downloaded from Amazon.

4. You need to select the "ssh3-RSA" option, and then click the Save Private key button. Select "yes" in the next pop-up window.

5. Save the file with the extension .ppk.

6. Now you need to open putty.exe. Click "connect" in the left menu, then select "SSH", and then select "Auth". You need to click the browse button to select the .ppk file we created in step 4.

7. Now click the "session" menu, and paste the DNS value in the "k" step of this tutorial in "host name", and then click the "open" button.

8. When you ask for a user name and password, enter ec2-user and a blank password, and then enter the following command.

$sudo su-

Haha, you are now the owner of the Linux server hosted on the AWS cloud.

The above is all the contents of the article "how to set up a Linux server on Amazon AWS". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report