How to set up a Linux server on Amazon AWS

Source: Internet
Author: User
Tags amazon aws console aws console

Summary: AWS (Amazon Web Services) is one of the world's leading cloud server providers. You can use the AWS platform to set up your servers within a minute. On AWS, you can fine-tune many of the technical details of the server, such as the number of CPUs, memory and disk space, the type of disk (faster SSD or classic IDE), and so on.

AWS (Amazon Web Services) is one of the world's leading cloud server providers. You can use the AWS platform to set up your servers within a minute. On AWS, you can fine-tune many of the technical details of the server, such as the number of CPUs, memory and disk space, the type of disk (faster SSD or classic IDE), and so on. The best thing about AWS is that you only pay for the services you use. Before you begin, AWS provides a special account called "Free Tier", you can use the AWS Technology Service for one year at no charge, but there are some small limitations, such as the number of servers you can use each month for more than 750 hours, over which they will charge you. You can view all the relevant rules on the AWS official website.

Because this article is about creating a Linux server on AWS, owning a "free Tier" account is a prerequisite. To sign up for an account, you can use this link. Note that you need to enter your credit card details when you create your account.

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

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

    1. EC2 (Elastic Compute Cloud): This term is used for virtual machines.
    2. AMI (Amazon machine image): Represents an operating system instance.
    3. EBS (Elastic block Storage): A type of storage environment in AWS.

Sign in to the AWS console using the following link: https://console.aws.amazon.com/.

The AWS console will resemble the following:

Amazon AWS Console

Setting up a Linux VM in AWS

1. Create an instance of EC2 (virtual machine): Before you begin to install the system, you must create a virtual machine in AWS. To create a virtual machine, under the "Calculate Compute" menu, click EC2:

Create an EC2 instance

2. Now click on "Launch instance" Launch Instance button under Create instance instance.

Launch the EC2 instance

3. Now, when you're using a "free tier" account, then it's a good idea to select the "No Tier" radio button so that AWS can filter out instances that can be used freely. This allows you to not pay for resources that use AWS.

Select Free Tier instances only

4. To continue, please select the following options:

A, select an AMI (Amazon machine Image) in the Classic Instance wizard, 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: Do not change anything, just click Next, because at this point we will use the default (GiB) hard drive.

E, add Tags: do not change anything just click Next.

F. Configure security group: Now select port 22 for SSH so that you can access this server from anywhere.

Configure AWS Server

G, select the "View and start Review and Launch" button.

H, 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 like the following to create a "key pair": Select the option "Create a key pair" creates a new key pair, and give the key pair a name and then download it. This key pair is required when connecting to the server using SSH. Finally, click the Launch instance launch Instance button.

Create Key Pair

J. Click the "launch instance launch Instance" button to go to the top left corner of the service. Select "Calculate Compute" and "EC2". Now click "Run instance running Instances":

Go to the running EC2 instance

K, now you can see that the status of your new VM is "running in running". Select the instance, make a note of the "Expose DNS name public DNS" that is required to log on to the server.

Public DNS value of the VM

Now that 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, you need to have Putty Gen and Putty EXE used to connect from Windows to the server (or SSH commands on Linux). You can download putty via the link below.

2. Now open Putty Gen: 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 "ssh2-rsa" option, then click the Save Private Key button. Please select "Yes" in the next pop-up window.

5. Save the file with the extension name .ppk .

6, now you need to open putty.exe . Click "Connect" in the left-hand menu, then select "SSH" and select "Auth". You need to click the Browse button to select the. ppk file that we created in step 4.

7. Now click on the "Session" menu and paste the DNS value in the "K" step of this tutorial in "Host Name" and click on the "Open" button.

8. When requesting username and password, enter ec2-user and blank password, then enter the following command.

    1. $ sudo su -

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

Original Date: 2017-03-18

This article comes from the cloud community partner "Linux China"

Original link

How to set up a Linux server on Amazon AWS

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.