

本文属于机器翻译版本。若本译文内容与英语原文存在差异，则一律以英文原文为准。

# 步骤 1：创建 ElastiCache Redis 集群
<a name="other-services-redis-cluster"></a>

**重要**  
该 AWS OpsWorks Stacks 服务于 2024 年 5 月 26 日终止，新客户和现有客户均已禁用。我们强烈建议客户尽快将其工作负载迁移到其他解决方案。如果您对迁移有疑问，请通过 re [AWS : Post 或通过 Pre](https://repost.aws/) mium Su [AWS pp](https://aws.amazon.com/support) ort 与 AWS 支持 团队联系。

您必须先使用 ElastiCache 控制台、API 或 CLI 创建 Amazon ElastiCache Redis 集群。下面介绍了如何使用控制台创建集群。

**创建 ElastiCache Redis 集群**

1. 转到 [ElastiCache 控制台](https://console.aws.amazon.com/elasticache/)，然后单击 **Launch Cache Cluster (启动缓存集群)** 启动缓存集群向导。

1. 在“Cache Cluster Details”页面上，执行以下操作：
   + 将 **Name** 设置为您的缓存服务器名称。

     此示例使用 OpsWorks-Redis。
   + 将 **Engine** 设置为 **redis**。
   + 将 **Topic for SNS Notification** 设置为 **Disable Notifications**。
   + 接受其他设置的默认值并单击 **Continue**。  
![\[Cache 集群 Wizard interface for configuring Redis 集群 details and settings.\]](http://docs.aws.amazon.com/zh_cn/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_cn/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_cn/opsworks/latest/userguide/images/elasticache-wizard-3.png)