Click here to load reader

Amazon Elastic Compute Cloud · PDF fileAmazon Elastic Compute Cloud Linux 執行個體使用者指南 安裝 WordPress..... 48

  • View
    54

  • Download
    0

Embed Size (px)

Text of Amazon Elastic Compute Cloud · PDF fileAmazon Elastic Compute Cloud Linux...

  • Amazon Elastic Compute Cloud Linux 執行個體使用者指南

  • Amazon Elastic Compute Cloud Linux 執行個體使用者指南

    Amazon Elastic Compute Cloud: Linux 執行個體使用者指南 Copyright © 2019 Amazon Web Services, Inc. and/or its affiliates. All rights reserved.

    Amazon's trademarks and trade dress may not be used in connection with any product or service that is not Amazon's, in any manner that is likely to cause confusion among customers, or in any manner that disparages or discredits Amazon. All other trademarks not owned by Amazon are the property of their respective owners, who may or may not be affiliated with, connected to, or sponsored by Amazon.

  • Amazon Elastic Compute Cloud Linux 執行個體使用者指南

    Table of Contents 什麼是 Amazon EC2? ........................................................................................................................ 1

    Amazon EC2 的功能 ................................................................................................................... 1 如何開始使用 Amazon EC2 .......................................................................................................... 1 相關服務 .................................................................................................................................... 2 存取 Amazon EC2 ...................................................................................................................... 3 Amazon EC2定價 ....................................................................................................................... 3 PCI DSS 合規 ............................................................................................................................ 4 執行個體與 AMI .......................................................................................................................... 4

    執行個體 ............................................................................................................................ 4 AMI .................................................................................................................................. 6

    區域、可用區域和本地區域 ........................................................................................................... 6 區域、可用區域和本地區域概念 ............................................................................................. 6 可用的區域 ........................................................................................................................ 8 區域與終端節點 .................................................................................................................. 9 描述您的區域、可用區域和本地區域 ....................................................................................... 9 指定資源的區域 ................................................................................................................. 11 選擇加入本地區域 .............................................................................................................. 12 在可用區域或本地區域中啟動執行個體 .................................................................................. 12 將執行個體遷移到其他的可用區域 ........................................................................................ 12

    根設備磁碟區 ............................................................................................................................ 13 根設備儲存概念 ................................................................................................................. 13 依據根設備類型選擇 AMI .................................................................................................... 14 判定您執行個體的根設備類型 .............................................................................................. 15 將根設備磁碟區變更為保留 ................................................................................................. 15

    設定 ................................................................................................................................................ 18 註冊 AWS 帳號: ..................................................................................................................... 18 建立 IAM 使用者 ....................................................................................................................... 18 建立金鑰對 ............................................................................................................................... 20 建立虛擬私有雲端 (VPC) ............................................................................................................ 22 建立安全群組 ............................................................................................................................ 22

    開始使用 .......................................................................................................................................... 24 概觀 ........................................................................................................................................ 24 先決條件 .................................................................................................................................. 25 步驟 1:啟動執行個體 ................................................................................................................ 25 步驟 2:連線到您的執行個體 ...................................................................................................... 26 步驟 3:清理您的執行個體 ......................................................................................................... 26 後續步驟 .................................................................................................................................. 26

    最佳實務 .......................................................................................................................................... 27 教學 ................................................................................................................................................ 28

    安裝 LAMP 伺服器 (Amazon Linux 2) .......................................................................................... 28 步驟 1:準備 LAMP 伺服器 ................................................................................................ 28 步驟 2:測試您的 LAMP 伺服器 .......................................................................................... 32 步驟 3:保護資料庫伺服器 ................................................................................................. 33 步驟 4:(選用) 安裝 phpMyAdmin ........................................................................................ 34 故障診斷 .......................................................................................................................... 37 相關主題 .......................................................................................................................... 37

    安裝 LAMP 伺服器 (Amazon Linux AMI) ....................................................................................... 37 步驟 1:準備 LAMP 伺服器 ................................................................................................ 38 步驟 2:測試您的 LAMP 伺服器 .......................................................................................... 41 步驟 3:保護資料庫伺服器 ................................................................................................. 43 步驟 4:(選用) 安裝 phpMyAdmin ........................................................................................ 44 故障診斷 .......................................................................................................................... 46 相關主題 .......................................................................................................................... 47

    教學課程:託管 WordPress 部落格 .............................................................................................. 47

    iii

  • Amazon Elastic Compute Cloud Linux 執行個體使用者指南

    先決條件 .......................................................................................................................... 48 安裝 WordPress ................................................................................................................ 48 後續步驟 .......................................................................................................................... 53 說明! 我的公有 DNS 名稱曾經變更且現在部落格無法使用 ........................................................ 54

    教學課程:在 Amazon Linux 2 上設定 SSL/TLS ............................................................................. 54 先決條件 .......................................................................................................................... 55 步驟 1:在伺服器上啟用 TLS .............................................................................................. 55 步驟 2:取得 CA 簽署的憑證 .............................................................................................. 57 步驟 3:測試和強化安全組態 .............................................................................................. 61 故障診斷 .......................................................................................................