AWS ec2 free package registration and usage tutorial

888u

Last update at :2024-02-04,Edit by888u

Basic information

  • https://aws.amazon.com https://amazonaws-china.com When registering an account, the US version is the same as the Chinese version. When creating EC2, be sure to select other countries and regions. Do not use https://www.amazonaws.cn
  • Free package introduction: https://amazonaws-china.com/cn/free/faqs/
  • Connect to a Linux/AWS instance using SSH: https://docs.aws.amazon.com/zh_cn/AWSEC2/latest/UserGuide/AccessingInstancesLinux.html
  • Registration process

  • Payment information To bind a credit card that supports foreign currencies, US$1 will be deducted

    Foreign currency payment credit card

  • Authentication After filling in the mobile phone number in mainland China, Amazon will automatically call you. You only need to enter the 4-digit number on the page

    Authentication

  • Service Support Plan
  • Remember, you must choose Basic, everything else is charged

    Service Support Plan

    Create EC2

  • Start creating EC2 After creating the account, log in and select EC2 in the menu (you can access it from many places)

    EC2

    Chinese is now supported here. Pay attention to selecting the server region in the upper right corner. If you want a faster connection to mainland China, you can choose Tokyo, which is faster. Hong Kong will be opened in the future, so it should also be possible;

    Free plan

  • Select instance type Be sure to select "eligible free package", if it is an English page, look for "free";

    Select an instance

  • Add storage Free 30G, you can directly change the default 8 to 30, or add a 20G one (for insurance purposes, I did not write 22) Official description: 30 GB of Amazon Elastic Block Storage (any combination of general purpose (SSD) or magnetic media), 2 million attached I/Os (with EBS magnetic media), and 1 GB of snapshot storage

    Add storage

  • Configure security group
  • Important, be sure to add the ssh+22 port for remote connection

    ip 0.0.0.0/0 does not restrict access to ip. You can set it to your own ip segment. You can then add more detailed tcp\udp ports, such as 8080\3306

    Configure security group

  • Verify previous options & start It will prompt that there is no restriction on IP access, so you can ignore it for now

    Start

  • Create a key pair Give a meaningful name, and then download the .pem file to the local computer for ssh login

    Create a key pair

  • Billing alerts can be set up to avoid charges

    Startup status

  • Budget Control

  • Assign fixed IP First assign a new address, and then associate the address with the instance. The public address can be used to log in to the server via ssh

    Assign fixed IP

  • Associated IP address

    Associated IP address

    Instance details

  • Remote ssh connection The description on the official website is very detailed https://docs.aws.amazon.com/zh_cn/AWSEC2/latest/UserGuide/AccessingInstancesLinux.html
  • Remote ssh connection

    Example:

  • ssh -i aws001_jp.pem ec2-user@ec2-52-198-64-26.ap-northeast-1.compute.amazonaws.com The .pem file is the key file (path) downloaded before, and ec2-user is the EC2 default user name
  • ssh -i aws001_jp.pem ec2-user@52.198.64.26 ip is the bound public network ip
  • Public network dns&ip

    Notes

  • Free for 12 months, please stop the instance in advance and close the account after expiration
  • The free plan is 750 hours/month, which is enough to run one instance for a month, but two instances cannot be run at the same time (one can be stopped or run alternately)
  • Recommended site search: 6 yuan per year cloud server, server space, overseas virtual host space, domain name registration, mainland China domain name registration, game server defense, website query domain name Guangdong website registration space website, website domain name registration information query,

    AWS ec2 free package registration and usage tutorial

    All copyrights belong to 888u unless special state
    取消
    微信二维码
    微信二维码
    支付宝二维码