

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

# 使用 Procfile 配置 .NET Core on Linux Elastic Beanstalk 环境
<a name="dotnet-linux-procfile"></a>

要在同一 Web 服务器上运行多个应用程序，您必须在源代码包中包含 `Procfile`，以告知 Elastic Beanstalk 要运行哪些应用程序。

建议您始终在源代码包中将 `Procfile` 与应用程序一起提供。通过这种方式，您可以精确控制 Elastic Beanstalk 为您的应用程序运行的进程以及这些进程接收的参数。

以下示例使用 `Procfile` 为 Elastic Beanstalk 指定要在同一 Web 服务器上运行的两个应用程序。

**Example Procfile**  

```
web: dotnet ./dotnet-core-app1/dotnetcoreapp1.dll
web2: dotnet ./dotnet-core-app2/dotnetcoreapp2.dll
```

有关编写和使用 `Procfile` 的详细信息，请参阅 [Buildfile 和 Procfile](platforms-linux-extend.build-proc.md)。