Skip to content

1. AWS帐户申请

1.1 准备资料

海外手机号

海外邮箱(推荐使用gmail)

海外信用卡

1.2 注册

https://aws.amazon.com/cn/resources/create-account/

1.点击创建帐户

image-20250404170853989

2.输入邮箱

image-20250404171032561

3.验证邮箱

image-20250404171255658

4.设置管理员登录密码

image-20250404171404772

5.设置账单地址

和信用卡上面的地址保持一致

image-20250404171616916

6.填写信用卡

image-20250404171807977

7.填写手机号

image-20250404172005112

image-20250404172037702

image-20250404172057436

8.选择免费

image-20250404172208429

9.注册成功

image-20250404172245760

image-20250404172402143

2. AWS界面配置

2.1 配置默认区域

image-20250430214638737

image-20250430214700516

3. AWS免费机器

https://aws.amazon.com/cn/free

文档

ec2介绍

https://aws.amazon.com/cn/ec2/instance-types/

https://docs.aws.amazon.com/AL2/latest/relnotes/relnotes-al2.html

aws预估费用

http://calculator.s3.amazonaws.com/index.html

https://aws.amazon.com/ec2/pr2icing/

磁盘

https://aws.amazon.com/cn/ebs/pricing/

s3

https://docs.aws.amazon.com/zh_cn/AmazonS3/latest/userguide/Welcome.html

ec2

https://docs.aws.amazon.com/zh_cn/AWSEC2/latest/UserGuide/general-purpose-instances.html#general-purpose-network-performance

  • 价格

https://www.instance-pricing.com/provider=aws-ec2/instance=m5zn.3xlarge/

AWS 网络测试地址

测试你本地的网络到亚马逊各个可用区的网络 https://www.cloudping.info/

AWS 测试IP获取

亚马逊提供的各个可用区和地域的网络 http://ec2-reachability.amazonaws.com/

AWS云服务器价格计算器

AWS WEB 价格计算器网址 https://calculator.s3.amazonaws.com/index.html

aws命令客户端引导:https://docs.aws.amazon.com/cli/latest/index.html

aws国内产品信息及定价:https://www.amazonaws.cn/products/

aws海外产品价格计算:https://calculator.aws

epel

Amazon Linux 2:

Install the EPEL release package for RHEL 7 and enable the EPEL repository.

sudo amazon-linux-extras install epel -y



Amazon Linux Amazon Machine Image (AMI):
sudo yum-config-manager --enable epel



RHEL 8:
sudo dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm -y
sudo dnf config-manager --set-enabled codeready-builder-for-rhel-8-rhui-rpms



Install and enable the EPEL release package for RHEL 7.

sudo yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm



CentOS 8:

Install the EPEL release package for RHEL 8. Enable both the EPEL and PowerTools repositories. The PowerTools repository contains development tools required by many EPEL packages.

sudo dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm -y
sudo dnf config-manager --set-enabled PowerTools
CentOS 7:

Install and enable the EPEL release package. CentOS 7 includes the epel-release package in the base repositories.

sudo yum -y install epel-release
Amazon Linux 2:

Install the EPEL release package for RHEL 7 and enable the EPEL repository.

sudo amazon-linux-extras install epel -y



Amazon Linux Amazon Machine Image (AMI):
sudo yum-config-manager --enable epel



RHEL 8:
sudo dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm -y
sudo dnf config-manager --set-enabled codeready-builder-for-rhel-8-rhui-rpms



Install and enable the EPEL release package for RHEL 7.

sudo yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm



CentOS 8:

Install the EPEL release package for RHEL 8. Enable both the EPEL and PowerTools repositories. The PowerTools repository contains development tools required by many EPEL packages.

sudo dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm -y
sudo dnf config-manager --set-enabled PowerTools
CentOS 7:

Install and enable the EPEL release package. CentOS 7 includes the epel-release package in the base repositories.

sudo yum -y install epel-release

FAQ

1.磁盘故障

故障现象(2021-04-25):
	1,出现问题时间节点将近晚上9点,持续报警,开始查看问题,联系aws
	2,经过aws最终查询是磁盘写入性能达到瓶颈,从而导致系统崩溃

解决方案:
	针对目前方式对磁盘升级,gp2的话1G可以增加3个 iops,现有磁盘是200g
    升级到600g  1800ips
故障现象(2021-04-25):
	1,出现问题时间节点将近晚上9点,持续报警,开始查看问题,联系aws
	2,经过aws最终查询是磁盘写入性能达到瓶颈,从而导致系统崩溃

解决方案:
	针对目前方式对磁盘升级,gp2的话1G可以增加3个 iops,现有磁盘是200g
    升级到600g  1800ips

blog:

https://www.cnblogs.com/syavingcs/p/8583060.html#申请弹性ip