

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

# 使用 Procfile 在 Linux Elastic Beanstalk 環境上設定 .NET Core
<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)。