【问题标题】:How to host windows services to windows azure如何将 Windows 服务托管到 Windows azure
【发布时间】:2014-07-17 05:16:46
【问题描述】:

如何将 Windows 服务托管到 Windows azure。

我找到了许多与 Worker 角色相关的解决方案,但 Worker 角色有很多设置,例如

  1. 创建员工角色解决方案。
  2. 创建云服务以运行脚本。

是否有任何简单的方法可以将 Windows 服务托管到 Windows azure,就像我们使用 Installutil.exe 安装服务并使用服务管理器启动和停止一样。

提前谢谢你。

【问题讨论】:

  • 您想要的是在现有云服务(可能是 Web 角色)中安装 Windows 服务,而无需以辅助角色进行。我的理解正确吗?或者您甚至不想要 Web 角色,只想在 Azure 中的任何位置安装和运行 Windows 服务。
  • 是的,我想通过任何简单的方式将我的 windows 服务运行到 windows azure。
  • I want to run my windows service to windows azure by any simple way - 这是一个非常模糊的评论恕我直言。向我们提供有关该应用程序的更多详细信息。您打算将其作为云服务还是在 VM 中运行?那么或许可以给你一些建议。
  • 我在我的项目中创建了一个 Windows 服务解决方案。这将每 5 分钟运行一次。我想将该 Windows 服务托管到 Windows azure。

标签: c# asp.net-mvc azure windows-services


【解决方案1】:

要在 Azure 中运行 Windows 服务,您可以简单地使用带有 Windows Server 2012 或 2008 操作系统的虚拟机(不是云服务)。远程桌面进入服务器并像在本地计算机上一样安装您的服务。你不必为此做任何特别的事情。

【讨论】:

  • 好的。谢谢,我会这样做。
  • 所以我只需要使用远程桌面在 Windows azure 虚拟机上获取 Release 文件夹,然后使用如下命令:installutil.exe MyNewService.exe ???
猜你喜欢
  • 2019-05-08
  • 1970-01-01
  • 2012-04-07
  • 2013-02-27
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多