

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

# Elastic Beanstalk 支持的平台
<a name="platforms-supported"></a>

AWS Elastic Beanstalk 提供托管平台，支持运行为特定编程语言、框架和 Web 容器开发的 Web 应用程序。Elastic Beanstalk 为每种平台提供一个或多个平台版本。在您创建环境和选择平台时，Elastic Beanstalk 会预置应用程序所需的资源，包括一个或多个 Amazon Elastic Compute Cloud (Amazon EC2) 实例。在 Amazon EC2 实例上运行的软件堆栈取决于您选择的平台版本。

有关平台的更多信息，请参阅 *AWS Elastic Beanstalk 开发人员指南*中的 [AWS Elastic Beanstalk 平台](https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/concepts-all-platforms.html)。有关最新版本的详细发布说明，请参阅 [AWS Elastic Beanstalk 发布说明](https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/)。

以下各节提供了有关当前所有平台版本的信息。有关历史平台版本的列表以及这些版本曾作为最新版本的日期范围，请参阅[平台历史记录](platform-history.md)。

Elastic Beanstalk 已计划停用一些平台版本，这样做是因为这些平台版本的一些组件的生命周期即将结束 (EOL)。这些平台版本将仍然可用，直到其即将停用的组件到达公布的停用日期。有关组件停用日期的列表，请参阅《*AWS Elastic Beanstalk 开发人员指南*》中的[AWS Elastic Beanstalk 平台时间表](https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/platforms-schedule.html)。有关计划停用的平台版本的列表，请参阅[计划停用的 Elastic Beanstalk 平台版本](platforms-retiring.md)。

**Topics**
+ [Docker](#platforms-supported.docker)
+ [Go](#platforms-supported.go)
+ [Java SE](#platforms-supported.javase)
+ [Tomcat](#platforms-supported.java)
+ [.NET Core on Linux](#platforms-supported.dotnetlinux)
+ [Windows Server 上的 .NET](#platforms-supported.net)
+ [Node.js](#platforms-supported.nodejs)
+ [PHP](#platforms-supported.PHP)
+ [Python](#platforms-supported.python)
+ [Ruby](#platforms-supported.ruby)
+ [计划停用的 Elastic Beanstalk 平台版本](platforms-retiring.md)
+ [公开测试版中的 Elastic Beanstalk 平台版本](platforms-beta.md)

## Docker
<a name="platforms-supported.docker"></a>

Docker 是一个容器平台，可让您定义自己的软件堆栈，并将它存储在一个可从远程存储库下载的镜像中。Docker 平台包含一个 nginx 代理服务器。

有关 Docker 平台的更多信息，请参阅 *AWS Elastic Beanstalk 开发人员指南*中的[从 Docker 容器部署 Elastic Beanstalk 应用程序](https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create_deploy_docker.html)。


****  

|  平台版本和*解决方案堆栈名称*   |  AMI  |  ECS 代理  |  Docker  |  Docker Compose  |  代理服务器  | 
| --- | --- | --- | --- | --- | --- | 
|   ** Docker AL2023 版本 4.12.0**   * 64bit Amazon Linux 2023 v4.12.0 running Docker *   |  2023.10.20260325  |    |  25.0.14  |  5.1.1  |  nginx 1.28.2  | 
|   **ECS AL2023版本 4.6.0**   * 64bit Amazon Linux 2023 v4.6.0 running ECS *   |  2023.10.20260325  |  1.102.0  |  25.0.14  |    |    | 
|   **Docker AL2版本 4.7.0**   * 64bit Amazon Linux 2 v4.7.0 running Docker *   |  2.0.20260302  |    |  25.0.14  |  5.1.0  |  nginx 1.28.2  | 
|   ** ECS AL2 版本 3.8.0**   * 64bit Amazon Linux 2 v3.8.0 running ECS *   |  2.0.20260302  |  1.101.3  |  25.0.14  |    |    | 

 有关计划停用的平台版本（如[平台支持政策](https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/platforms-support-policy.html)中所发布的）的信息，请参阅*即将停用平台版本*页面上的[Docker](platforms-retiring.md#platforms-retiring.docker)。有关早期平台版本的信息，请参阅 [Docker 平台历史记录](platform-history-docker.md)。

## Go
<a name="platforms-supported.go"></a>

Elastic Beanstalk 支持以下 Go 平台版本。


****  

|  平台版本和*解决方案堆栈名称*   |  AMI  |  语言  |  AWS X-Ray  |  代理服务器  | 
| --- | --- | --- | --- | --- | 
|   **Go 1 AL2023版本 4.8.0**   * 64bit Amazon Linux 2023 v4.8.0 running Go 1 *   |  2023.10.20260325  |  Go 1.25.8  |  3.6.2  |  nginx 1.28.2  | 
|   **Go 1 AL2版本 3.17.0**   * 64bit Amazon Linux 2 v3.17.0 running Go 1 *   |  2.0.20260302  |  Go 1.26.1  |  3.6.2  |  nginx 1.28.2  | 

 有关计划停用的平台版本（如[平台支持政策](https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/platforms-support-policy.html)中所发布的）的信息，请参阅*即将停用平台版本*页面上的[Go](platforms-retiring.md#platforms-retiring.go)。有关早期平台版本的信息，请参阅 [Go 平台历史记录](platform-history-go.md)。

## Java SE
<a name="platforms-supported.javase"></a>

Elastic Beanstalk 支持以下 Java SE 平台版本。


****  

|  平台版本和*解决方案堆栈名称*   |  AMI  |  语言  |  工具  |  AWS X-Ray  |  代理服务器  | 
| --- | --- | --- | --- | --- | --- | 
|   ** Corretto 25 AL2023 版本 4.11.0**   * 64bit Amazon Linux 2023 v4.11.0 running Corretto 25 *   |  2023.10.20260325  |  Corretto 25.0.2.10.1  |  Ant 1.10.15、Gradle 9.4.1、Maven 3.9.14  |  3.6.2  |  nginx 1.28.2  | 
|   ** Corretto 21 AL2023 版本 4.11.0**   * 64bit Amazon Linux 2023 v4.11.0 running Corretto 21 *   |  2023.10.20260325  |  Corretto 21.0.10.7.1  |  Ant 1.10.15、Gradle 9.4.1、Maven 3.9.14  |  3.6.2  |  nginx 1.28.2  | 
|   ** Corretto 17 AL2023 版本 4.11.0**   * 64bit Amazon Linux 2023 v4.11.0 running Corretto 17 *   |  2023.10.20260325  |  Corretto 17.0.18.9.1  |  Ant 1.10.15、Gradle 9.4.1、Maven 3.9.14  |  3.6.2  |  nginx 1.28.2  | 
|   ** Corretto 11 AL2023 版本 4.11.0**   * 64bit Amazon Linux 2023 v4.11.0 running Corretto 11 *   |  2023.10.20260325  |  Corretto 11.0.30.7.1  |  Ant 1.10.15、Gradle 8.14.4、Maven 3.9.14  |  3.6.2  |  nginx 1.28.2  | 
|   ** Corretto 8 AL2023 版本 4.11.0**   * 64bit Amazon Linux 2023 v4.11.0 running Corretto 8 *   |  2023.10.20260325  |  Corretto 8.482.08.1  |  Ant 1.10.15、Gradle 8.14.4、Maven 3.9.14  |  3.6.2  |  nginx 1.28.2  | 
|   **Corretto 17版本 3.12.0**   * 64bit Amazon Linux 2 v3.12.0 running Corretto 17 *   |  2.0.20260302  |  Corretto 17.0.18.9.1  |  Ant 1.10.15、Gradle 8.14.4、Maven 3.9.13  |  3.6.2  |  nginx 1.28.2  | 
|   **Corretto 11版本 3.12.0**   * 64bit Amazon Linux 2 v3.12.0 running Corretto 11 *   |  2.0.20260302  |  Corretto 11.0.30.7.1  |  Ant 1.10.15、Gradle 8.14.4、Maven 3.9.13  |  3.6.2  |  nginx 1.28.2  | 
|   **Corretto 8版本 3.12.0**   * 64bit Amazon Linux 2 v3.12.0 running Corretto 8 *   |  2.0.20260302  |  Corretto 8.482.08.1  |  Ant 1.10.15、Gradle 8.14.4、Maven 3.9.13  |  3.6.2  |  nginx 1.28.2  | 

 有关计划停用的平台版本（如[平台支持政策](https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/platforms-support-policy.html)中所发布的）的信息，请参阅*即将停用平台版本*页面上的[Java SE](platforms-retiring.md#platforms-retiring.javase)。有关早期平台版本的信息，请参阅 [Java SE 平台历史记录](platform-history-javase.md)。

## Tomcat
<a name="platforms-supported.java"></a>

Elastic Beanstalk 支持以下 Tomcat 平台版本。


****  

|  平台版本和*解决方案堆栈名称*   |  AMI  |  语言  |  AWS X-Ray  |  应用程序服务器  |  代理服务器  | 
| --- | --- | --- | --- | --- | --- | 
|   **Corretto 25 with Tomcat 11 AL2023版本 5.13.0**   * 64bit Amazon Linux 2023 v5.13.0 running Tomcat 11 Corretto 25 *   |  2023.10.20260325  |  Corretto 25.0.2.10.1  |  3.6.2  |  Tomcat 11.0.20  |  nginx 1.28.2（默认）、Apache 2.4.66  | 
|   **Corretto 21 with Tomcat 11 AL2023版本 5.13.0**   * 64bit Amazon Linux 2023 v5.13.0 running Tomcat 11 Corretto 21 *   |  2023.10.20260325  |  Corretto 21.0.10.7.1  |  3.6.2  |  Tomcat 11.0.20  |  nginx 1.28.2（默认）、Apache 2.4.66  | 
|   **Corretto 17 with Tomcat 11 AL2023版本 5.13.0**   * 64bit Amazon Linux 2023 v5.13.0 running Tomcat 11 Corretto 17 *   |  2023.10.20260325  |  Corretto 17.0.18.9.1  |  3.6.2  |  Tomcat 11.0.20  |  nginx 1.28.2（默认）、Apache 2.4.66  | 
|   **Corretto 21 with Tomcat 10 AL2023版本 5.13.0**   * 64bit Amazon Linux 2023 v5.13.0 running Tomcat 10 Corretto 21 *   |  2023.10.20260325  |  Corretto 21.0.10.7.1  |  3.6.2  |  Tomcat 10.1.53  |  nginx 1.28.2（默认）、Apache 2.4.66  | 
|   **Corretto 17 with Tomcat 10 AL2023版本 5.13.0**   * 64bit Amazon Linux 2023 v5.13.0 running Tomcat 10 Corretto 17 *   |  2023.10.20260325  |  Corretto 17.0.18.9.1  |  3.6.2  |  Tomcat 10.1.53  |  nginx 1.28.2（默认）、Apache 2.4.66  | 
|   **Corretto 17 with Tomcat 9 AL2023版本 5.13.0**   * 64bit Amazon Linux 2023 v5.13.0 running Tomcat 9 Corretto 17 *   |  2023.10.20260325  |  Corretto 17.0.18.9.1  |  3.6.2  |  Tomcat 9.0.115  |  nginx 1.28.2（默认）、Apache 2.4.66  | 
|   **Corretto 11 with Tomcat 9 AL2023版本 5.13.0**   * 64bit Amazon Linux 2023 v5.13.0 running Tomcat 9 Corretto 11 *   |  2023.10.20260325  |  Corretto 11.0.30.7.1  |  3.6.2  |  Tomcat 9.0.115  |  nginx 1.28.2（默认）、Apache 2.4.66  | 
|   **Corretto 8 with Tomcat 9 AL2023版本 5.13.0**   * 64bit Amazon Linux 2023 v5.13.0 running Tomcat 9 Corretto 8 *   |  2023.10.20260325  |  Corretto 8.482.08.1  |  3.6.2  |  Tomcat 9.0.116  |  nginx 1.28.2（默认）、Apache 2.4.66  | 
|   ** Corretto 11 with Tomcat 9 AL2 版本 4.12.0**   * 64bit Amazon Linux 2 v4.12.0 running Tomcat 9 Corretto 11 *   |  2.0.20260302  |  Corretto 11.0.30.7.1  |  3.6.2  |  Tomcat 9.0.110  |  nginx 1.28.2（默认）、Apache 2.4.66  | 
|   ** Corretto 8 with Tomcat 9 AL2 版本 4.12.0**   * 64bit Amazon Linux 2 v4.12.0 running Tomcat 9 Corretto 8 *   |  2.0.20260302  |  Corretto 8.482.08.1  |  3.6.2  |  Tomcat 9.0.110  |  nginx 1.28.2（默认）、Apache 2.4.66  | 

 有关计划停用的平台版本（如[平台支持政策](https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/platforms-support-policy.html)中所发布的）的信息，请参阅*即将停用平台版本*页面上的[Tomcat](platforms-retiring.md#platforms-retiring.java)。有关早期平台版本的信息，请参阅 [Tomcat 平台历史记录](platform-history-java.md)。

## .NET Core on Linux
<a name="platforms-supported.dotnetlinux"></a>

Elastic Beanstalk 支持以下 .NET Core on Linux 平台版本。


****  

|  平台版本和*解决方案堆栈名称*   |  框架  |  代理服务器  |  AMI  |  AWS X-Ray  | 
| --- | --- | --- | --- | --- | 
|   **.NET 10 on AL2023版本 3.10.0**   * 64bit Amazon Linux 2023 v3.10.0 running .NET 10 *   |  .NET 10.0.5，支持 10.0.5  |  nginx 1.28.2  |  2023.10.20260325  |  3.6.2  | 
|   **.NET 9 on AL2023版本 3.10.0**   * 64bit Amazon Linux 2023 v3.10.0 running .NET 9 *   |  .NET 9.0.14，支持 9.0.14  |  nginx 1.28.2  |  2023.10.20260325  |  3.6.2  | 
|   **.NET 8 on AL2023版本 3.10.0**   * 64bit Amazon Linux 2023 v3.10.0 running .NET 8 *   |  .NET 8.0.25，支持 8.0.25  |  nginx 1.28.2  |  2023.10.20260325  |  3.6.2  | 
|   ** .NET Core on AL2 版本 2.14.0**   * 64bit Amazon Linux 2 v2.14.0 running .NET Core *   |  .NET 8.0.24，支持 8.0.24  |  nginx 1.28.2  |  2.0.20260302  |  3.6.2  | 

 有关计划停用的平台版本（如[平台支持政策](https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/platforms-support-policy.html)中所发布的）的信息，请参阅*即将停用平台版本*页面上的[.NET Core on Linux](platforms-retiring.md#platforms-retiring.dotnetlinux)。有关早期平台版本的信息，请参阅 [.NET Core on Linux 平台历史记录](platform-history-dotnetlinux.md)。

## Windows Server 上的 .NET
<a name="platforms-supported.net"></a>

您可以使用 [AWS Toolkit for Visual Studio](https://aws.amazon.com/visualstudio/) 在几分钟内开始使用。此工具包包含 AWS 库、项目模板、代码示例和文档。 适用于 .NET 的 AWS SDK 支持使用 .NET Framework 2.0 或更高版本开发应用程序。

**注意**  
此平台不支持以下 Elastic Beanstalk 功能：  
工作线程环境。有关详细信息，请参阅 *AWS Elastic Beanstalk 开发人员指南*中的 [AWS Elastic Beanstalk 工件环境](https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/using-features-managing-env-tiers.html)。

*要了解如何开始使用部署.NET 应用程序 AWS Toolkit for Visual Studio，请参阅开发者指南中的使用在.NET [中创建和部署 AWS Toolkit for Visual Studio Elastic Beanstalk 应用程序](https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create_deploy_NET.html)。AWS Elastic Beanstalk *

[有关最新 Microsoft 安全更新的信息，请参阅[安全和安全公告和公告](https://technet.microsoft.com/en-us/library/security/)。 TechCenter](https://portal.msrc.microsoft.com/en-us/)

 有关用于 Elastic Beanstalk 的早期 .NET on Windows Server 平台版本的信息，请参阅 [Windows Server 上的 .NET 平台历史记录](platform-history-dotnet.md)。

Elastic Beanstalk 支持以下 .NET on Windows Server 平台版本。

### 基本配置
<a name="platforms-supported.net.basics"></a>


****  

|  平台版本  |  解决方案堆栈名称  |  框架  |  代理服务器  | 
| --- | --- | --- | --- | 
|   **Windows Server 2025 with IIS 10.0版本 2.22.3**   |   * 64bit Windows Server 2025 v2.22.3 running IIS 10.0 *   |  .NET 9.0.14，支持 9.0.14、8.0.25、10.0.5 .NET Framework 4.8.1，支持 4.x、2.0  |  IIS 10.0  | 
|   **Windows Server Core 2025 with IIS 10.0版本 2.22.3**   |   * 64bit Windows Server Core 2025 v2.22.3 running IIS 10.0 *   |  .NET 9.0.14，支持 9.0.14、8.0.25、10.0.5 .NET Framework 4.8.1，支持 4.x、2.0  |  IIS 10.0  | 
|   **Windows Server 2022 with IIS 10.0版本 2.22.3**   |   * 64bit Windows Server 2022 v2.22.3 running IIS 10.0 *   |  .NET 9.0.14，支持 9.0.14、8.0.25、10.0.5 .NET Framework 4.8.1，支持 4.x、2.0  |  IIS 10.0  | 
|   **Windows Server Core 2022 with IIS 10.0版本 2.22.3**   |   * 64bit Windows Server Core 2022 v2.22.3 running IIS 10.0 *   |  .NET 9.0.14，支持 9.0.14、8.0.25、10.0.5 .NET Framework 4.8.1，支持 4.x、2.0  |  IIS 10.0  | 
|   **Windows Server 2019 with IIS 10.0版本 2.22.3**   |   * 64bit Windows Server 2019 v2.22.3 running IIS 10.0 *   |  .NET 9.0.14，支持 9.0.14、8.0.25、10.0.5 .NET 框架 4.8，支持 4.x、2.0  |  IIS 10.0  | 
|   **Windows Server Core 2019 with IIS 10.0版本 2.22.3**   |   * 64bit Windows Server Core 2019 v2.22.3 running IIS 10.0 *   |  .NET 9.0.14，支持 9.0.14、8.0.25、10.0.5 .NET 框架 4.8，支持 4.x、2.0  |  IIS 10.0  | 
|   **Windows Server 2016 with IIS 10.0版本 2.22.3**   |   * 64bit Windows Server 2016 v2.22.3 running IIS 10.0 *   |  .NET 9.0.14，支持 9.0.14、8.0.25、10.0.5 .NET 框架 4.8，支持 4.x、2.0  |  IIS 10.0  | 
|   **Windows Server Core 2016 with IIS 10.0版本 2.22.3**   |   * 64bit Windows Server Core 2016 v2.22.3 running IIS 10.0 *   |  .NET 9.0.14，支持 9.0.14、8.0.25、10.0.5 .NET 框架 4.8，支持 4.x、2.0  |  IIS 10.0  | 

### 更多详情
<a name="platforms-supported.net.details"></a>


****  

|  平台版本  |  AMI 版本  |  适用于 .NET 的 AWS SDK  |  EC2启动  |  SSM Agent  |  Web 部署  |  AWS X-Ray  | 
| --- | --- | --- | --- | --- | --- | --- | 
|   **Windows Server 2025 with IIS 10.0版本 2.22.3**   |  2026.03.11  |  3.7.1239.0  |  2.4.0.0  |  3.3.3883.0  |  4.0  |  3.6.1  | 
|   **Windows Server Core 2025 with IIS 10.0版本 2.22.3**   |  2026.03.11  |  3.7.1239.0  |  2.4.0.0  |  3.3.3883.0  |  4.0  |  3.6.1  | 
|   **Windows Server 2022 with IIS 10.0版本 2.22.3**   |  2026.03.11  |  3.7.1239.0  |  2.4.0.0  |  3.3.3883.0  |  4.0  |  3.6.1  | 
|   **Windows Server Core 2022 with IIS 10.0版本 2.22.3**   |  2026.03.11  |  3.7.1239.0  |  2.4.0.0  |  3.3.3883.0  |  4.0  |  3.6.1  | 
|   **Windows Server 2019 with IIS 10.0版本 2.22.3**   |  2026.03.11  |  3.7.1239.0  |  2.4.0.0  |  3.3.3883.0  |  4.0  |  3.6.1  | 
|   **Windows Server Core 2019 with IIS 10.0版本 2.22.3**   |  2026.03.11  |  3.7.1239.0  |  2.4.0.0  |  3.3.3883.0  |  4.0  |  3.6.1  | 
|   **Windows Server 2016 with IIS 10.0版本 2.22.3**   |  2026.03.11  |  3.7.1239.0  |  2.4.0.0  |  3.3.3883.0  |  4.0  |  3.6.1  | 
|   **Windows Server Core 2016 with IIS 10.0版本 2.22.3**   |  2026.03.11  |  3.7.1239.0  |  2.4.0.0  |  3.3.3883.0  |  4.0  |  3.6.1  | 

## Node.js
<a name="platforms-supported.nodejs"></a>

亚马逊 Linux 2 上的每个 Node.js 平台版本都支持多个 Node.js 语言版本。仅预安装了默认的 Node.js 版本。下表列出了有效的 Node.js 版本以及原定设置版本。从亚马逊 Linux 2023 开始，每个平台版本上只有一个 Node.js 版本可用。每个 Node.js 版本都包含相应的 npm (Node.js 程序包管理器) 版本。该表在括号中列出了 npm 版本。

Elastic Beanstalk 支持以下 Node.js 平台版本。


****  

|  平台版本和*解决方案堆栈名称*   |  AMI  |  Node.js 版本（npm 版本）  |  代理服务器  |  Git  |  AWS X-Ray  | 
| --- | --- | --- | --- | --- | --- | 
|   **Node.js 24 AL2023版本 6.10.0**   * 64bit Amazon Linux 2023 v6.10.0 running Node.js 24 *   |  2023.10.20260325  |  24.14.1 (11.11.0)  默认版本：v24.14.1  |  nginx 1.28.2（默认）、Apache 2.4.66  |  2.50.1  |  3.6.2  | 
|   **Node.js 22 AL2023版本 6.10.0**   * 64bit Amazon Linux 2023 v6.10.0 running Node.js 22 *   |  2023.10.20260325  |  22.22.2 (10.9.7)  默认版本：v22.22.2  |  nginx 1.28.2（默认）、Apache 2.4.66  |  2.50.1  |  3.6.2  | 
|   **Node.js 20 AL2023版本 6.10.0**   * 64bit Amazon Linux 2023 v6.10.0 running Node.js 20 *   |  2023.10.20260325  |  20.20.1 (10.8.2)  默认版本：20.20.1  |  nginx 1.28.2（默认）、Apache 2.4.66  |  2.50.1  |  3.6.2  | 

 有关计划停用的平台版本（如[平台支持政策](https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/platforms-support-policy.html)中所发布的）的信息，请参阅*即将停用平台版本*页面上的[Node.js](platforms-retiring.md#platforms-retiring.nodejs)。有关早期平台版本的信息，请参阅 [Node.js 平台历史记录](platform-history-nodejs.md)。

**注意**  
如果平台版本已不再支持您正在使用的 Node.js 版本，则您必须先更改或删除相应的版本设置再进行[平台更新](https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/using-features.platform.upgrade.html)。当在 Node.js 版本中识别到安全漏洞，或者该版本已停用时，可能会发生这种情况。  
发生此情况时，尝试更新到不支持所配置的 Node.js 版本的新平台版本会失败。要消除创建新环境的需求，请执行以下操作：  
 *Amazon Linux 2* - 将 `package.json` 中的 Node.js 版本设置更改为旧平台版本和新平台版本都支持的 Node.js 版本，或删除设置，然后部署新的源代码包。然后再执行平台更新。
 *Amazon Linux AMI* - 将 `NodeVersion` 配置选项更改为旧平台版本和新平台版本都支持的版本，或[删除选项设置](https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/environment-configuration-methods-after.html)，然后执行平台更新。

## PHP
<a name="platforms-supported.PHP"></a>

Elastic Beanstalk 支持以下 PHP 平台版本。


****  

|  平台版本和*解决方案堆栈名称*   |  AMI  |  语言  |  包管理器  |  代理服务器  | 
| --- | --- | --- | --- | --- | 
|   ** PHP 8.5 AL2023 版本 4.12.0**   * 64bit Amazon Linux 2023 v4.12.0 running PHP 8.5 *   |  2023.10.20260325  |  PHP 8.5.4  |  作曲家 2.9.5，PIE 1.3.10  |  nginx 1.28.2（默认）、Apache 2.4.66  | 
|   ** PHP 8.4 AL2023 版本 4.12.0**   * 64bit Amazon Linux 2023 v4.12.0 running PHP 8.4 *   |  2023.10.20260325  |  PHP 8.4.19  |  作曲家 2.9.5，PIE 1.3.10  |  nginx 1.28.2（默认）、Apache 2.4.66  | 
|   ** PHP 8.3 AL2023 版本 4.12.0**   * 64bit Amazon Linux 2023 v4.12.0 running PHP 8.3 *   |  2023.10.20260325  |  PHP 8.3.30  |  作曲家 2.9.5，PIE 1.3.10  |  nginx 1.28.2（默认）、Apache 2.4.66  | 
|   ** PHP 8.2 AL2023 版本 4.12.0**   * 64bit Amazon Linux 2023 v4.12.0 running PHP 8.2 *   |  2023.10.20260325  |  PHP 8.2.30  |  作曲家 2.9.5，PIE 1.3.10  |  nginx 1.28.2（默认）、Apache 2.4.66  | 
|   ** PHP 8.1 AL2023 版本 4.12.0**   * 64bit Amazon Linux 2023 v4.12.0 running PHP 8.1 *   |  2023.10.20260325  |  PHP 8.1.34  |  作曲家 2.9.5，PIE 1.3.10  |  nginx 1.28.2（默认）、Apache 2.4.66  | 
|   **PHP 8.1 AL2版本 3.14.0**   * 64bit Amazon Linux 2 v3.14.0 running PHP 8.1 *   |  2.0.20260302  |  PHP 8.1.33  |  作曲家 2.9.5  |  nginx 1.28.2（默认）、Apache 2.4.66  | 

 有关计划停用的平台版本（如[平台支持政策](https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/platforms-support-policy.html)中所发布的）的信息，请参阅*即将停用平台版本*页面上的[PHP](platforms-retiring.md#platforms-retiring.PHP)。有关早期平台版本的信息，请参阅 [PHP 平台历史记录](platform-history-php.md)。

## Python
<a name="platforms-supported.python"></a>

Elastic Beanstalk 支持以下 Python 平台版本。


****  

|  平台版本和*解决方案堆栈名称*   |  AMI  |  语言  |  包管理器  |  AWS X-Ray  |  代理服务器  | 
| --- | --- | --- | --- | --- | --- | 
|   ** Python 3.14 AL2023 版本 4.12.0**   * 64bit Amazon Linux 2023 v4.12.0 running Python 3.14 *   |  2023.10.20260325  |  Python 3.14.3  |  pip 26.0.1，pipenv 2026.4.0  |  3.6.2  |  nginx 1.28.2（默认）、Apache 2.4.66  | 
|   ** Python 3.13 AL2023 版本 4.12.0**   * 64bit Amazon Linux 2023 v4.12.0 running Python 3.13 *   |  2023.10.20260325  |  Python 3.13.12  |  pip 26.0.1，pipenv 2026.4.0  |  3.6.2  |  nginx 1.28.2（默认）、Apache 2.4.66  | 
|   ** Python 3.12 AL2023 版本 4.12.0**   * 64bit Amazon Linux 2023 v4.12.0 running Python 3.12 *   |  2023.10.20260325  |  Python 3.12.13  |  pip 26.0.1，pipenv 2026.4.0  |  3.6.2  |  nginx 1.28.2（默认）、Apache 2.4.66  | 
|   ** Python 3.11 AL2023 版本 4.12.0**   * 64bit Amazon Linux 2023 v4.12.0 running Python 3.11 *   |  2023.10.20260325  |  Python 3.11.14  |  pip 26.0.1，pipenv 2026.4.0  |  3.6.2  |  nginx 1.28.2（默认）、Apache 2.4.66  | 
|   ** Python 3.9 AL2023 版本 4.12.0**   * 64bit Amazon Linux 2023 v4.12.0 running Python 3.9 *   |  2023.10.20260325  |  Python 3.9.25  |  pip 26.0.1，pipenv 2025.0.4  |  3.6.2  |  nginx 1.28.2（默认）、Apache 2.4.66  | 

 有关计划停用的平台版本（如[平台支持政策](https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/platforms-support-policy.html)中所发布的）的信息，请参阅*即将停用平台版本*页面上的[Python](platforms-retiring.md#platforms-retiring.python)。有关早期平台版本的信息，请参阅 [Python 平台历史记录](platform-history-python.md)。

## Ruby
<a name="platforms-supported.ruby"></a>

Elastic Beanstalk 支持以下 Ruby 平台版本。


****  

|  平台版本和*解决方案堆栈名称*   |  AMI  |  语言  |  包管理器  |  应用程序服务器  |  AWS X-Ray  |  代理服务器  | 
| --- | --- | --- | --- | --- | --- | --- | 
|   ** Ruby 4.0 AL2023 版本 4.12.0**   * 64bit Amazon Linux 2023 v4.12.0 running Ruby 4.0 *   |  2023.10.20260325  |  Ruby 4.0.2-p0  |  RubyGems 4.0.6  |  Puma 7.2.0  |  3.6.2  |  nginx 1.28.2  | 
|   ** Ruby 3.4 AL2023 版本 4.12.0**   * 64bit Amazon Linux 2023 v4.12.0 running Ruby 3.4 *   |  2023.10.20260325  |  Ruby 3.4.9-p82  |  RubyGems 3.6.9  |  Puma 7.2.0  |  3.6.2  |  nginx 1.28.2  | 
|   ** Ruby 3.3 AL2023 版本 4.12.0**   * 64bit Amazon Linux 2023 v4.12.0 running Ruby 3.3 *   |  2023.10.20260325  |  Ruby 3.11-p205  |  RubyGems 3.5.22  |  Puma 7.2.0  |  3.6.2  |  nginx 1.28.2  | 
|   ** Ruby 3.2 AL2023 版本 4.12.0**   * 64bit Amazon Linux 2023 v4.12.0 running Ruby 3.2 *   |  2023.10.20260325  |  Ruby 3.2.8  |  RubyGems 3.4.19  |  Puma 7.2.0  |  3.6.2  |  nginx 1.28.2  | 

 有关计划停用的平台版本（如[平台支持政策](https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/platforms-support-policy.html)中所发布的）的信息，请参阅*即将停用平台版本*页面上的[Ruby](platforms-retiring.md#platforms-retiring.ruby)。有关早期平台版本的信息，请参阅 [Ruby 平台历史记录](platform-history-ruby.md)。

# 计划停用的 Elastic Beanstalk 平台版本
<a name="platforms-retiring"></a>

AWS Elastic Beanstalk 提供托管平台，支持运行为特定编程语言、框架和 Web 容器开发的 Web 应用程序。Elastic Beanstalk 为每种平台提供一个或多个平台版本。有关最新支持的平台版本的详细信息，请参阅 [Elastic Beanstalk 支持的平台](platforms-supported.md)。

此页面列出了 Elastic Beanstalk 计划停用的平台版本，之所以停用是因为它们的一些组件的生命周期即将结束 (EOL)。这些平台版本将仍然可用，直到其即将停用的组件到达公布的停用日期。有关组件停用日期的列表，请参阅《*AWS Elastic Beanstalk 开发人员指南*》中的[AWS Elastic Beanstalk 平台时间表](https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/platforms-schedule.html)。

**注意**  
[2022 年 7 月 18 日，](https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2022-07-18-linux-al1-retire.html)**Elastic Beanstalk 将所有基于亚马逊 Linux AMI AL1 () 的平台分支的状态设置为停用。**有关更多信息，请参阅《*AWS Elastic Beanstalk 开发者指南》*中的[AL1 平台停用常见问题解答](https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/using-features.migration-al.FAQ.html)。

以下各节提供了有关当前所有已停用的平台版本的信息。

**Topics**
+ [Docker](#platforms-retiring.docker)
+ [Go](#platforms-retiring.go)
+ [Java SE](#platforms-retiring.javase)
+ [Tomcat](#platforms-retiring.java)
+ [.NET Core on Linux](#platforms-retiring.dotnetlinux)
+ [Node.js](#platforms-retiring.nodejs)
+ [PHP](#platforms-retiring.PHP)
+ [Python](#platforms-retiring.python)
+ [Ruby](#platforms-retiring.ruby)

## Docker
<a name="platforms-retiring.docker"></a>

Elastic Beanstalk 已计划停用以下 Docker 平台版本。


****  

|  平台版本和*解决方案堆栈名称*   |  AMI  |  ECS 代理  |  Docker  |  Docker Compose  |  代理服务器  |  结束日期  | 
| --- | --- | --- | --- | --- | --- | --- | 
|   **Docker AL2版本 4.7.0**   * 64bit Amazon Linux 2 v4.7.0 running Docker *   |  2.0.20260302  |    |  25.0.14  |  5.1.0  |  nginx 1.28.2  |  2026-06-30  | 
|   ** ECS AL2 版本 3.8.0**   * 64bit Amazon Linux 2 v3.8.0 running ECS *   |  2.0.20260302  |  1.101.3  |  25.0.14  |    |    |  2026-06-30  | 

有关最新平台版本的信息，请参阅 [Docker](platforms-supported.md#platforms-supported.docker)。

## Go
<a name="platforms-retiring.go"></a>

Elastic Beanstalk 已计划停用以下 GoGo 平台版本。


****  

|  平台版本和*解决方案堆栈名称*   |  AMI  |  语言  |  AWS X-Ray  |  代理服务器  |  结束日期  | 
| --- | --- | --- | --- | --- | --- | 
|   **Go 1 AL2版本 3.17.0**   * 64bit Amazon Linux 2 v3.17.0 running Go 1 *   |  2.0.20260302  |  Go 1.26.1  |  3.6.2  |  nginx 1.28.2  |  2026-06-30  | 

有关最新平台版本的信息，请参阅 [Go](platforms-supported.md#platforms-supported.go)。

## Java SE
<a name="platforms-retiring.javase"></a>

Elastic Beanstalk 已计划停用以下 Java SE 平台版本。


****  

|  平台版本和*解决方案堆栈名称*   |  AMI  |  语言  |  工具  |  AWS X-Ray  |  代理服务器  |  结束日期  | 
| --- | --- | --- | --- | --- | --- | --- | 
|   **Corretto 17版本 3.12.0**   * 64bit Amazon Linux 2 v3.12.0 running Corretto 17 *   |  2.0.20260302  |  Corretto 17.0.18.9.1  |  Ant 1.10.15、Gradle 8.14.4、Maven 3.9.13  |  3.6.2  |  nginx 1.28.2  |  2026-06-30  | 
|   **Corretto 11版本 3.12.0**   * 64bit Amazon Linux 2 v3.12.0 running Corretto 11 *   |  2.0.20260302  |  Corretto 11.0.30.7.1  |  Ant 1.10.15、Gradle 8.14.4、Maven 3.9.13  |  3.6.2  |  nginx 1.28.2  |  2026-06-30  | 
|   **Corretto 8版本 3.12.0**   * 64bit Amazon Linux 2 v3.12.0 running Corretto 8 *   |  2.0.20260302  |  Corretto 8.482.08.1  |  Ant 1.10.15、Gradle 8.14.4、Maven 3.9.13  |  3.6.2  |  nginx 1.28.2  |  2026-06-30  | 

有关最新平台版本的信息，请参阅 [Java SE](platforms-supported.md#platforms-supported.javase)。

## Tomcat
<a name="platforms-retiring.java"></a>

Elastic Beanstalk 已计划停用以下 Tomcat 平台版本。


****  

|  平台版本和*解决方案堆栈名称*   |  AMI  |  语言  |  AWS X-Ray  |  应用程序服务器  |  代理服务器  |  结束日期  | 
| --- | --- | --- | --- | --- | --- | --- | 
|   ** Corretto 11 with Tomcat 9 AL2 版本 4.12.0**   * 64bit Amazon Linux 2 v4.12.0 running Tomcat 9 Corretto 11 *   |  2.0.20260302  |  Corretto 11.0.30.7.1  |  3.6.2  |  Tomcat 9.0.110  |  nginx 1.28.2（默认）、Apache 2.4.66  |  2026-06-30  | 
|   ** Corretto 8 with Tomcat 9 AL2 版本 4.12.0**   * 64bit Amazon Linux 2 v4.12.0 running Tomcat 9 Corretto 8 *   |  2.0.20260302  |  Corretto 8.482.08.1  |  3.6.2  |  Tomcat 9.0.110  |  nginx 1.28.2（默认）、Apache 2.4.66  |  2026-06-30  | 

有关最新平台版本的信息，请参阅 [Tomcat](platforms-supported.md#platforms-supported.java)。

## .NET Core on Linux
<a name="platforms-retiring.dotnetlinux"></a>

Elastic Beanstalk 已计划停用 Linux 平台版本上的以下.NET Core。


****  

|  平台版本和*解决方案堆栈名称*   |  框架  |  代理服务器  |  AMI  |  AWS X-Ray  |  结束日期  | 
| --- | --- | --- | --- | --- | --- | 
|   ** .NET Core on AL2 版本 2.14.0**   * 64bit Amazon Linux 2 v2.14.0 running .NET Core *   |  .NET 8.0.24，支持 8.0.24  |  nginx 1.28.2  |  2.0.20260302  |  3.6.2  |  2026-06-30  | 

有关最新平台版本的信息，请参阅 [.NET Core on Linux](platforms-supported.md#platforms-supported.dotnetlinux)。

## Node.js
<a name="platforms-retiring.nodejs"></a>

Elastic Beanstalk 已计划停用以下 Node.js 平台版本。


****  

|  平台版本和*解决方案堆栈名称*   |  AMI  |  Node.js 版本（npm 版本）  |  代理服务器  |  Git  |  AWS X-Ray  |  结束日期  | 
| --- | --- | --- | --- | --- | --- | --- | 
|   **Node.js 20 AL2023版本 6.10.0**   * 64bit Amazon Linux 2023 v6.10.0 running Node.js 20 *   |  2023.10.20260325  |  20.20.1 (10.8.2)  默认版本：20.20.1  |  nginx 1.28.2（默认）、Apache 2.4.66  |  2.50.1  |  3.6.2  |  2026-07-31  | 

有关最新平台版本的信息，请参阅 [Node.js](platforms-supported.md#platforms-supported.nodejs)。

## PHP
<a name="platforms-retiring.PHP"></a>

Elastic Beanstalk 已计划停用以下 PHP 平台版本。


****  

|  平台版本和*解决方案堆栈名称*   |  AMI  |  语言  |  包管理器  |  代理服务器  |  结束日期  | 
| --- | --- | --- | --- | --- | --- | 
|   ** PHP 8.1 AL2023 版本 4.12.0**   * 64bit Amazon Linux 2023 v4.12.0 running PHP 8.1 *   |  2023.10.20260325  |  PHP 8.1.34  |  作曲家 2.9.5，PIE 1.3.10  |  nginx 1.28.2（默认）、Apache 2.4.66  |  2026-03-31  | 
|   **PHP 8.1 AL2版本 3.14.0**   * 64bit Amazon Linux 2 v3.14.0 running PHP 8.1 *   |  2.0.20260302  |  PHP 8.1.33  |  作曲家 2.9.5  |  nginx 1.28.2（默认）、Apache 2.4.66  |  2026-03-31  | 

有关最新平台版本的信息，请参阅 [PHP](platforms-supported.md#platforms-supported.PHP)。

## Python
<a name="platforms-retiring.python"></a>

Elastic Beanstalk 已计划停用以下 Python 平台版本。


****  

|  平台版本和*解决方案堆栈名称*   |  AMI  |  语言  |  包管理器  |  AWS X-Ray  |  代理服务器  |  结束日期  | 
| --- | --- | --- | --- | --- | --- | --- | 
|   ** Python 3.9 AL2023 版本 4.12.0**   * 64bit Amazon Linux 2023 v4.12.0 running Python 3.9 *   |  2023.10.20260325  |  Python 3.9.25  |  pip 26.0.1，pipenv 2025.0.4  |  3.6.2  |  nginx 1.28.2（默认）、Apache 2.4.66  |  2026-07-31  | 

有关最新平台版本的信息，请参阅 [Python](platforms-supported.md#platforms-supported.python)。

## Ruby
<a name="platforms-retiring.ruby"></a>

Elastic Beanstalk 已计划停用以下 Ruby 平台版本。


****  

|  平台版本和*解决方案堆栈名称*   |  AMI  |  语言  |  包管理器  |  应用程序服务器  |  AWS X-Ray  |  代理服务器  |  结束日期  | 
| --- | --- | --- | --- | --- | --- | --- | --- | 
|   ** Ruby 3.2 AL2023 版本 4.12.0**   * 64bit Amazon Linux 2023 v4.12.0 running Ruby 3.2 *   |  2023.10.20260325  |  Ruby 3.2.8  |  RubyGems 3.4.19  |  Puma 7.2.0  |  3.6.2  |  nginx 1.28.2  |  2026-07-31  | 

有关最新平台版本的信息，请参阅 [Ruby](platforms-supported.md#platforms-supported.ruby)。

# 公开测试版中的 Elastic Beanstalk 平台版本
<a name="platforms-beta"></a>

AWS Elastic Beanstalk 提供托管平台，支持运行为特定编程语言、框架和 Web 容器开发的 Web 应用程序。Elastic Beanstalk 为每种平台提供一个或多个平台版本。有关最新支持的平台版本的详细信息，请参阅 [Elastic Beanstalk 支持的平台](platforms-supported.md)。

此页面列出了新的平台版本，这些版本目前位于我们的公开测试程序中。这些平台版本仅用于评估目的。请注意，这些测试版平台版本并非最终版本，我们可能会在完全支持这些平台之前更改一些命名和实现细节。

 *目前在我们的公开测试程序中没有新的平台版本。*