|[Back - Chapter 3-2](https://github.com/xuan103/MQTT/blob/main/document/test_rule.md)|[Contents](https://github.com/xuan103/MQTT/blob/main/README.md)| [Next - Chapter 5](https://github.com/xuan103/MQTT/blob/main/document/AWS:%20EC2_For_Ubuntu_SSH.md) ---| ---| ---| --- # Chapter 4: AWS: EC2 Install Ubuntu ## 前置準備作業 - 有 AWS 帳號 - 一台有網路電腦 - Ubuntu - Mac - Windows --- ## 使用工具的 Port - Mosquitto - 1883 Port - Node-RED - 1880 Port - InfluxDB - 8086 Port - Grafana - 3000 Port  --- ### Step 1. 登入到 AWS - 登入網址:https://aws.amazon.com/tw/  --- ### Step 2. 啟用與設定 EC2 - 找到 "所有服務" ➙ 點選 "EC2"。  >--- - 點選 " 啟動執行個體(Launch Instance)"。  >--- - 點選 "Ubuntu Server 18.04 LTS (HVM), SSD Volume Type " 旁邊的 " Select "。  >--- - 點選 " t2.micro " 的 Instance Type  >--- - 來到 " strp 6.Configure Security Group " - 在 " Type " 欄位中選擇 " Custom TCP " - 在 " Port Range " 欄位中輸入 " 1883 " - 在 " Source " 欄位中輸入 " 0.0.0.0/0 " 重複以上動作,將所需 port 添加完畢,點選 " Review and Lanuch " 按鈕。  >---  >--- - 來到 " strp 7.Review Instance Lanuch " , 點選 " Lanuch " 按鈕。  >---  >---  --- 3. 建立完成畫面  ###### tags: `MQTT` `Node-RED` `EC2` --- |[Back - Chapter 3-2](https://github.com/xuan103/MQTT/blob/main/document/test_rule.md)|[Contents](https://github.com/xuan103/MQTT/blob/main/README.md)| [Next - Chapter 5](https://github.com/xuan103/MQTT/blob/main/document/AWS:%20EC2_For_Ubuntu_SSH.md) ---| ---| ---|
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up