gpt4 book ai didi

azure - 将我的 Azure 应用程序部署到公司本地 Windows Server

转载 作者:行者123 更新时间:2023-12-04 12:23:37 25 4
gpt4 key购买 nike

我是 Windows Azure 新手,需要帮助将已正确部署到 Azure 的 Azure 应用程序部署到本地服务器。

我的应用程序由一个 Web 角色组成,其中包含一个用于 Silverlight 应用程序的 Silverlight 客户端。

我在服务器上安装并配置了 Windows Server appfabric,服务器实际上已准备就绪。但我不知道如何部署/发布应用程序。

为了部署到 Azure,我使用右键单击 Azure 应用程序中的发布选项创建了 .cspkg 文件。然后使用 azure 管理门户将生成的文件部署到 Azure。我怎样才能为本地服务器做类似的事情?

最佳答案

Windows Azure 提供了在您的开发计算机上运行的模拟器环境。您可以在该模拟器中运行 Windows Azure 应用程序,也可以发布到 Windows Azure。没有将 Windows Azure 应用程序部署到 Windows Server 的选项。

虽然提供的某些服务类似(例如缓存),但 Windows Server AppFabric 并不等同于 Windows Azure 提供的服务,并且没有在 Windows Server 上运行的等效结构 Controller 。

编辑:根据 @Asmaa 的评论添加说明。

构建私有(private)云与创建本地版本的 Windows Azure 不同。您引用的私有(private)云本质上是一组运行由 Hyper-V 管理的虚拟机的 Windows 服务器以及某种类型的本地存储。您将完全负责复制、灾难恢复、持久存储(即使磁盘崩溃,存储也能继续存在)、扩展等。

Windows Azure 提供上述功能,但仅限于其数据中心内。正如 @Avkash 提到的,有一个 Windows Azure 设备,但数量很少,而且规模很大(就像为数据中心制造的那样)。

如果目标是在本地或 Windows Azure 中运行代码,则可以完成此操作,但不能通过将 Windows Azure 包推送到 Windows 服务器来实现。您需要构建单独的解决方案才能在两个环境中运行代码。如果正确打包,您可以重用核心代码,但角色环境、诊断和其他 Windows Azure 功能的概念需要用其他内容替换。

最后一件事:如果您想要构建一个混合应用程序,其中一些部署在本地,一些部署到 Windows Azure,那么肯定有方法来桥接这两者。请参阅this article了解更多信息。

关于azure - 将我的 Azure 应用程序部署到公司本地 Windows Server,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10710851/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com