

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# 步驟 1：建立 ElastiCache Redis 叢集
<a name="other-services-redis-cluster"></a>

**重要**  
 AWS OpsWorks Stacks 此服務已於 2024 年 5 月 26 日終止，並已針對新客戶和現有客戶停用。我們強烈建議客戶盡快將其工作負載遷移至其他解決方案。如果您對遷移有任何疑問，請透過 [AWS re：Post](https://repost.aws/) 或透過 [AWS Premium Support](https://aws.amazon.com/support) 聯絡 AWS 支援 團隊。

您必須先使用 Amazon ElastiCache ElastiCache Redis 叢集。以下說明如何使用主控台來建立叢集。

**建立 ElastiCache Redis 叢集**

1. 前往 [ElastiCache 主控台](https://console.aws.amazon.com/elasticache/)，然後按一下**啟動快取叢集**以啟動快取叢集精靈。

1. 在 Cache Cluster Details (快取叢集詳細資訊) 頁面上，執行下列作業：
   + 將 **Name (名稱)** 設為您的快取伺服器名稱。

     此範例使用 OpsWorks-Redis。
   + 將 **Engine (引擎)** 設為 **redis**。
   + 將 **Topic for SNS Notification (SNS 通知主題)** 設為 **Disable Notifications (停用通知)**。
   + 針對其他設定接受預設值，然後按一下 **Continue (繼續)**。  
![\[Cache 叢集 Wizard interface for configuring Redis 叢集 details and settings.\]](http://docs.aws.amazon.com/zh_tw/opsworks/latest/userguide/images/elasticache-wizard-1.png)

1. 在 **Additional Configuration (其他組態)** 頁面上，接受預設值，然後按一下 **Continue (繼續)**。  
![\[Cache 叢集 Wizard configuration page with security group, parameter group, and maintenance window options.\]](http://docs.aws.amazon.com/zh_tw/opsworks/latest/userguide/images/elasticache-wizard-2.png)

1. 按一下 **Launch Cache Cluster (啟動快取叢集)** 以建立叢集。
**重要**  
針對此範例，預設快取安全群組便已足夠，但若為生產用途，建議您建立適合您環境的快取安全群組。如需詳細資訊，請參閱[管理快取安全群組](https://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/ManagingSecurityGroups.html)。

1. 在啟動叢集後，按一下名稱以開啟詳細資訊頁面，然後按一下 **Nodes (節點)** 標籤。記下叢集的 **Port (連接埠)** 和 **Endpoint (端點)** 值，以供稍後使用。  
![\[Cache 叢集 details showing node status, creation date, port, and endpoint for a Redis instance.\]](http://docs.aws.amazon.com/zh_tw/opsworks/latest/userguide/images/elasticache-wizard-3.png)