Day19-部署篇(一)Amazon EC2

大家好~
接下来要把我们的 Echo bot 部署上 Amazon EC2 啦~

Amazon EC2

会员注册就不多做说明啦,
就从开一台新的 EC2 开始吧!

登入 AWS(Amazon Web Services)後,
进到 EC2 的操作页面~
找不到的话可以在画面上方的搜寻列找 EC2 喔~
1.

2.

进到 EC2 的操作页面後,
下图是画面右上角区块,

  1. 可以选择 Server 要架的地点,建议选择离自己所在地较近的 Region。
  2. 选择好 Region 後,就可以开新的 Server 啦。

Step 1: Choose an Amazon Machine Image (AMI)


选择想使用的作业系统,
该篇以 Ubuntu 20.04 为例。

Step 2: Choose an Instance Type


选择 Server 的 CPU、memory、storage、networking capacity 配置,
该篇以免费方案配置为例。

Step 3: Configure Instance Details

Configure the instance to suit your requirements. You can launch multiple instances from the same AMI, request Spot instances to take advantage of the lower pricing, assign an access management role to the instance, and more.

没有特别需求就直接下一步吧。

Step 4: Add Storage

Step 5: Add Tags

点击 click to add a Name tag 帮 Server 命名吧。

Step 6: Configure Security Group


SSH 用 My IP 的话比较安全些,
IP 有变动记得要回来改设定喔~

Step 7: Review Instance Launch

确认没问题就 Launch 吧!

建立金钥

按下 Launch 後会跳出一个方块,
让你选择要建立新金钥还是选择既有金钥。
以下以建立新金钥为例。

  1. 选择 Create a new key pair,并在 Key pair name 栏位输入金钥名称。
  2. 点击 Download Key Pair 下载金钥,就可以 Launch Instances 啦。

这样我们的 Instance 就开好啦~


在 Instances 下可以找到我们刚刚开好的 Instance。

Elastic IPs

接下来帮我们的 Instance 设置固定 IP 吧!

  1. 首先在 EC2 页面的左方点击 Elastic IPs
  2. 点击 Allocate Elastic IP address
  3. 为 Elastic IP 命名,完成後点击 Allocate
  4. 接下来要将 Elastic IP 与我们的 Instance 绑定,先点击下图红框处进到该 Elastic IP 画面。
  5. 点击 Associate Elastic IP address
  6. 选择要绑定的 Instance 与 Private IP,然後点 Associate

这样就完成啦~
今天就先这样啦,
明天再继续,
大家明天见啦!
若文章有任何问题,
还请大家不吝赐教!


<<:  Day 19 - 实测盘中订阅 tick 与 bidask 资料是否有先後顺序 (上)

>>:  Day26 玩家技巧、阶级与配对关系

身份验证器或身份验证机制(authenticator or authentication mechanism)

客户端的属性或属性值无法向IdP认证客户端。例如,提交用户名和员工ID的用户将不会向IdP进行身份验...

How to fix Gmail not receiving emails on iPhone?

Are you encountering Gmail not receiving emails is...

Android Studio初学笔记-Day22-ToolBar

Toolbar Toolbar是对於顶端横幅栏的设计,不同於之前介面设计的元件,对於整个程序来讲可以...

JavaScript入门 Day28_for回圈

今天要讲的是for回圈,他跟while有异曲同工之妙 直接来看看下面的code吧~ var JsFr...

学习Python纪录Day2 - Python基本介绍

Python介绍: Python具备两种特性,(1)直译式语言 (2)语法友善 因为Python是一...