

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

# 重新托管
<a name="rehost"></a>

再托管（移动）是在不进行修改的情况下将本地应用程序迁移到云端的过程。此策略主要用于迁移大型应用程序以满足特定的业务目标，例如在更短的时间内推出产品或离开本地数据中心。这些应用程序将重新托管在满足您迁移应用程序要求的亚马逊弹性计算云 (Amazon EC2) Windows 实例上。

## 使用案例
<a name="rehost-use-case"></a>

此迁移策略在以下任何情况下都很有用：
+ 旧版.NET 应用程序必须作为本机 Windows 应用程序运行。
+ 没有时间和资源来实现应用程序现代化。
+ 传统的.NET 应用程序是商用 off-the-shelf (COTS) 应用程序。

## 优点
<a name="rehost-advantages"></a>

与本地.NET 应用程序相比，重新托管具有以下优势：
+ 工作量最少，因为它不需要更改代码或架构
+ 降低了成本
+ 更好的合规性和安全性，因为它使用了 AWS 基础架构和安全最佳实践

## 劣势
<a name="rehost-disadvantages"></a>
+ 没有充分利用云的性能、可扩展性和弹性 AWS 选项
+ 难以与 state-of-the-art云服务集成

## AWS 服务
<a name="rehost-services"></a>
+ [Amazon EC2](https://aws.amazon.com/ec2)
+ [AWS Elastic Beanstalk](https://aws.amazon.com/elasticbeanstalk)
+ [AWS Application Migration Service](https://aws.amazon.com/application-migration-service)

## 工具
<a name="rehost-tools"></a>


****  

| **工具** | **目的** | **资源** | 
| --- | --- | --- | 
| Windows Web 应用程序迁移助手 | 该工具是一个交互式 PowerShell 脚本，可将整个网站及其配置迁移到 Elastic Beanstalk。 | [将 ASP.NET 应用程序迁移到 Elastic Beanstalk（](https://aws.amazon.com/blogs/devops/migrating-asp-net-applications-to-elastic-beanstalk-with-windows-web-application-migration-assistant/)AWS 博客文章） | 

## 部署决策
<a name="rehost-deploy"></a>

您可以从两个部署选项中进行选择：
+ 如果您想完全控制计算环境的配置，包括内存和存储设置，并控制操作系统补丁，请将.NET 应用程序迁移到 Amazon EC2。
+ 如果您不需要完全控制基础架构，请使用 Elastic Beanstalk。Elastic Beanstalk 会自动为您的应用程序设置托管环境。

 ![\[Rehosting .NET applications on Amazon EC2 instances\]](http://docs.aws.amazon.com/zh_cn/prescriptive-guidance/latest/modernization-net-applications/images/rehost.png) 