The emergence of Amazon EC2, did the times choose it, or did it choose the times?

Table of contents

Introduction to Amazon EC2

Comparison of cloud servers from competitors (Amazon VS Tencent)

Comparison of cloud servers from competitors (Amazon VS Alibaba)

The absolute advantages of Amazon cloud servers

Amazon EC2 features

Getting Started with Amazon EC2 Linux Instances

Start an instance

Instance to connect to

Cleared instance

terminated instance

Amazon EC2 usage

Create EC2 instance

Connect EC2

use


Introduction to Amazon EC2

Amazon Elastic Compute Cloud (EC2, Elastic Compute Cloud) is a system that allows users to rent cloud computers to run required applications. EC2 allows users to flexibly run their own Amazon machine images by providing Web services. Users will be able to run any software or applications they want on this virtual machine. Provides adjustable cloud computing capabilities. It is designed to make web-scale computing easier for developers.

Comparison of cloud servers from competitors (Amazon VS Tencent)

With the popularity of cloud computing, people are also beginning to look for more efficient network services. Amazon Web Services (AWS) and Tencent Cloud (Tencent Cloud) are two of the more popular cloud computing services on the market. AWS is a secure, flexible and scalable cloud computing service platform provided by Amazon, while Tencent Cloud is A global cloud computing service platform for developers provided by Tencent. This article will discuss the differences between Amazon and Tencent cloud servers.

  • price comparison

First, price is usually an important consideration in cloud computing services. AWS and Tencent Cloud have different pricing strategies. AWS adopts a time-of-use billing model, which means that it charges for the use of capacity, runtime, and other resources, and the charging standards are very granular, and users can choose different pricing plans based on their needs.

On the contrary, Tencent Cloud's billing method is more flexible, based on pay-as-you-go billing (that is, fees are only paid when the service is used), and fees are calculated accordingly at the beginning and end of use. This method of billing based on usage time makes Tencent Cloud more cost-effective than AWS, especially for short-lived computing tasks, using Tencent Cloud may be more economical and reasonable.

  • market share

AWS is the leader in the cloud computing market, with approximately 33% of the global market share. Tencent Cloud is relatively new, but it has a large share of the Chinese market. With an average share of over 40% in China, it is one of the top five cloud computing service providers in China and the Asia-Pacific region. It is also a member of the China Financial Security Alliance.

  • Data center location

AWS distributes its data center locations around the world, including in the United States, Canada, South America, Africa, Europe, Asia, and Australia. AWS leverages these geographies to build a powerful global network to serve users around the world.

Tencent Cloud's data center locations are mainly located within China, making it very popular in the Chinese market. However, this also limits its coverage in other regions, especially outside of China where Tencent Cloud's network may not be as effective as AWS.

  • Function

AWS provides a wide range of services and features, such as Amazon Elastic Compute Cloud (EC2), Amazon S3, Amazon RDS, Amazon Kinesis, and Amazon Lex, among others. In addition, AWS is also working hard on new services, such as Amazon WorkSpaces, Amazon Connect, and Amazon Transcribe.

Tencent Cloud provides basic cloud computing services and applications, as well as high-end applications such as Tencent's machine learning platform and intelligent voice interaction platform.

  • Security and reliability

Both AWS and Tencent Cloud have made significant investments in security and reliability to ensure customers' data and operations are safe. AWS uses the best current network security model and global data backup system to deal with data security issues, while Tencent Cloud has established a complete information security management system and compliance audit system to ensure customer data security.

In terms of reliability, both AWS and Tencent Cloud provide fault tolerance and disaster recovery measures to ensure the stability and high availability of servers.

Both AWS and Tencent Cloud provide scalable cloud computing service platforms to make it easier for customers to manage and utilize data. There are some differences between them that need to be considered. AWS is a global platform suitable for customers around the world. Its advantages lie in its relatively complete services and features, global data centers, and a large number of users. As for the Chinese market, due to policy reasons, AWS may have some problems with user experience and business expansion. Tencent Cloud has an advantage in business expansion and number of users in the Chinese market. In terms of price, services, data center location, functions, security and reliability, etc., it is necessary to choose a cloud computing service provider that suits you based on different user needs.

Comparison of cloud servers from competitors (Amazon VS Alibaba)

  1. aws: (Computing service) EC2, Auto Scaling, etc., (Storage service) S3, EBS, etc., as well as network, database, message queue, Hadoop, streaming media, monitoring, security, automation, terminal, IOT and other services

  2. Alibaba Cloud: monitoring, security, middleware, big data, virtual network, logs, etc., most of which are basic services

  3. From the perspective of service types, the services provided by AWS are more comprehensive, more experienced, and have higher functions than Alibaba Cloud.

  4. In terms of stability, it is recommended to use AWS first.

  5. In terms of speed, AWS is slightly inferior. After all, the server layout is different, and the price is also different. AWS is billed separately.

  6. Alibaba Cloud is more prominent in its CDN function, while AWS uses CloudFront as its CDN

  7. AWS supports the most third parties, but Alibaba Cloud is a bit bleak in this regard.

  8. Compared with AWS, which has more support, it is mainly for enterprises, while Alibaba Cloud is mainly for individual households.

The absolute advantages of Amazon cloud servers

  • Dominant position in the cloud market

  • AWS has the most comprehensive data center

  • Has the deepest ability to manage large numbers of users and resources

  • Has a growing list of available services

  • Beginner friendly (monthly restrictions apply)

  • Global coverage, fast speed and high sensitivity

  • serverless framework

  • More experience and more functions

  • Use now, pay later (calculated at the end of the month)

  • Unlimited server capacity, flexible expansion, and extensive tools

  • Mirrors are infinite

Amazon EC2 features

EC2 provides our users with a true virtual computer environment. We use WEB services to launch multiple operating instances, load instances of these application environments through customization, and manage network permissions to perform system images according to the number we need. .

If using EC2:

  • Pre-configure a templated system image to start and run (or configure an application, data, library and related configurations). Select an instance type you want, and then use WEB service-related APIs or other related management tools to start. Terminate and monitor your instance. Configure relevant security and access permissions on EC2. Determine whether you need to use relevant API endpoints or persistent storage on the instance.

  • EBS: This is a storage volume that provides durability for EC2. EBS must go through the network when accessed and can exist independently of the instance. EBS is a storage volume with very high availability and reliability. We can use it as an EC2 boot partition. As a standard block storage system attached to EC2 instances, EBS volumes greatly improve the durability of EC2 instance storage.

  • CPU: Optimizing CPU features allows for better control of EC2 instances. You can specify any number of vCPUs when starting a new instance to save costs. You can target single-threaded CPUs for jobs that run well under operating conditions.

  • HPC cluster: Customers with complex computing workloads or network performance-sensitive applications can achieve the computing and network performance provided by custom infrastructure, and can also enjoy the elasticity, economy, and flexibility of EC2.

  • Elastic IP: This is an IP address dedicated to dynamic computing. This IP is not specifically related to the account, but you can control the address until you completely choose to release the IP address. You can use a programmatic method to remap the public IP address to the account. to any instance, thereby masking instance failures

Getting Started with Amazon EC2 Linux Instances

Start an instance

  1. Open the Amazon EC2 console at:https://console.aws.amazon.com/ec2/.

  2. From the EC2 console dashboard, in the Launch instance box, select Launch instance, and then select Launch instance from the options that appear.

  3. Under Name and tags, for Name, enter a descriptive name for the instance.

  4. In Application and OS Images (Amazon Machine Image), do the following:

    1. Select Quick Start, and then select Amazon Linux. This is the operating system (OS) for the instance.

    2. From Amazon Machine Image (AMI), select the HVM version of Amazon Linux 2. Note that these AMIs are marked as Free tier eligible. Amazon Machine Image (AMI) is a base configuration that serves as a template for an instance.

  5. Under Instance type, from the Instance type list, you can select the hardware configuration for the instance. Select the t2.micro instance type, which is selected by default. t2.micro The instance type is eligible for the free tier. In regions where t2.micro is not available, t3.micro instances are available under the Free Tier. For more information, see AmazonFree Tier.

  6. Under Key pair (login), for Key pair name, select the key pair you created when you started setup.

    warn

    Do not select Proceed without a key pair (Not recommended). If you launch an instance without a key pair, you cannot connect to the instance.

  7. Next to Network settings, select Edit. For Security group name, you will see that the wizard created and selected the security group. You can use this security group, or you can choose the security group you created during setup using the following steps:

    1. Select Select existing security group.

    2. From Common security groups, select a security group from the list of existing security groups.

  8. For other configuration settings for the instance, leave the default selections.

  9. Review the summary of the instance configuration in the Summary panel and, when ready, select Launch instance.

  10. The confirmation page will let you know that your instance has been started. Select View all instances to close the confirmation page and return to the console.

  11. On the instance screen, you can view the startup status. Launching an instance takes only a short time. When an instance is launched, its initial state is pending. After the instance starts, its status changes to running and it receives a public DNS name. (If the Public IPv4 DNS column is hidden, select the settings icon in the upper right corner (

    Settings icon.

    ), open Public IPv4 DNS, and then select Confirm.

  12. It may take a few minutes for the instance to be ready for connections to it. Whether the checked instance passed the status check; you can view this information in the Status Check column.

Instance to connect to

Use a key pair with .pem files when launching the instance and a security group that allows SSH access from the machine, otherwise you will not be able to connect to the instance.

Cleared instance

If the instance launched is not within theAmazon Free Tier, the instance becomes shutting down or terminated status, it will stop accruing fees.

terminated instance

  1. In the navigation pane, select the instance. Select the instance in the instance list.

  2. Select Instance Status, Terminate Instance.

  3. When prompted for confirmation, select Terminate.

    Amazon EC2 shut down and terminated instance. After the instance is terminated, it will remain visible on the console for a short time, and then the entry will be automatically deleted. You cannot remove a terminated instance from the console display yourself.

Amazon EC2 usage

Create EC2 instance

  • After entering the Amazon cloud official website, find the Amazon EC2 product and use it

  • Before we start the instance we need to name our instance

We must create a unique key pair to prevent others from intruding (and to prevent easy modification of the password after forgetting it)

After starting the instance, you can configure it

  1. Security groups: Create your own firewall rules or choose the default VPC security group

  2. Storage: EC2 offers both disk and SSD storage. We recommend starting with an EBS gp2 volume

  3. Select Launch Instances to complete the setup

Connect EC2

Xshell is a powerful secure terminal emulation tool. It supports SSH1, SSH2, and the TELNET protocol of the Microsoft Windows platform (free). Xftp can be used in conjunction with Xshell (users can safely transfer files between UNIX/Linux and Windows PC). Putty is used to connect to the server remotely and supports connections through SSH, Telnet, Serial and other protocols. The most commonly used one is SSH (free). Both of them can be connected to EC2 instances. After entering the IP address and port number of the server we need to connect to, we can connect to the instance (you can save it for easy connection next time). Use), you will be asked to enter your username and password during the connection process (commonly known as authentication), and you can use it directly after entering (such Linux window operation is very comfortable)

use

We create our own project locally using Vue CLI or Vite

Next we use Vue CLI to create

If so, install it first

npm install -g @vue/cli  // 使用npm安装
# OR
yarn global add @vue/cli  // 使用yarn安装
 
 

Use the following command to check whether the installation is successful

vue --version

Create project

vue create helloWord

Just choose V2

You can also choose the third one to configure it yourself (I chose the first one for convenience) ----- Wait after selecting.

Guess you like

Origin blog.csdn.net/lbcyllqj/article/details/134490917