下载安装包 - Amazon ElastiCache
Amazon Web Services 文档中描述的 Amazon Web Services 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅 中国的 Amazon Web Services 服务入门 (PDF)

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

下载安装包

为了确保适用于 PHP 的 ElastiCache Cluster Client 的版本正确,您需要了解您的 Amazon EC2 实例上安装的是哪一个版本的 PHP。此外,还需要知道您的 Amazon EC2 实例是在 64 位还是 32 位版本的 Linux 上运行的。

确定安装在 Amazon EC2 实例上的 PHP 版本
  • 在命令提示符下,运行以下命令:

    php -v

    PHP 版本将在输出中显示,如本示例所示:

    PHP 5.4.10 (cli) (built: Jan 11 2013 14:48:57) Copyright (c) 1997-2012 The PHP Group Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies
    注意

    如果您的 PHP 版本与 Memcached 版本不兼容,您会收到与下面类似的错误消息:

    PHP Warning: PHP Startup: memcached: Unable to initialize module Module compiled with module API=20100525 PHP compiled with module API=20131226 These options need to match in Unknown on line 0

    如果出现这种情况,您需要从源代码编译模块。有关更多信息,请参阅编译适用于 PHP 的 ElastiCache Cluster Client 的源代码

确定您的 Amazon EC2 AMI 架构(64 位或 32 位)
  1. 登录到 Amazon Web Services Management Console 并打开 Amazon EC2 控制台(https://console.aws.amazon.com/ec2/)。

  2. Instances(实例)列表中,单击您的 Amazon EC2 实例。

  3. Description 选项卡上,查找 AMI: 字段。64 位实例应该把 x86_64 作为描述的一部分;对于 32 位实例,查找本字段中的 i386i686

您现在准备下载 ElastiCache Cluster Client。

下载适用于 PHP 的 ElastiCache Cluster Client
  1. 登录 Amazon Web Services Management Console 并打开 ElastiCache 控制台 (https://console.aws.amazon.com/elasticache/)。

  2. 在 ElastiCache 控制台中,选择 ElastiCache Cluster Client

  3. Download ElastiCache Memcached Cluster Client(下载 ElastiCache Memcached Cluster Client)列表中,选择与 PHP 版本和 AMI 架构匹配的 ElastiCache Cluster Client,然后选择 Download(下载)按钮。

    对于支持 TLS 的客户端,请下载 PHP 版本 7.4 或更高版本的二进制文件。