简体   繁体   English

我应该使用Windows服务吗?

[英]Should I use a windows service?

Hi I have a console app which I need to start up when Windows Server 2012 starts and without needing to login. 嗨,我有一个控制台应用程序,我需要在Windows Server 2012启动时启动并且无需登录。 I've done a bit of research and people advise a windows service is the correct approach, however the links are quite old and I wanted to confirm this is still the case, or indeed correct at all. 我做了一些研究,人们建议Windows服务是正确的方法,但是链接已经很旧了,我想确认情况仍然如此,或者确实是正确的。 Cheers. 干杯。

Yes, Windows Service is still the most popular way to write and run servers and or a 'daemon' in Windows OS. 是的,Windows Service仍然是编写和运行服务器以及Windows OS中的“守护程序”的最流行方法。

Depending on what your application is doing, you might have other options though, eg hosting an application in IIS (Microsoft's Web server application in Windows Server). 但是,根据应用程序正在执行的操作,您可能还有其他选择,例如在IIS中托管应用程序(Windows Server中的Microsoft Web服务器应用程序)。

More recently, Microsoft has been working with Docker to also allow the use of containerized application deployments, which is available in new versions of Windows Server (Windows Server 2016). 最近,Microsoft与Docker合作,还允许使用容器化的应用程序部署,这在Windows Server的新版本(Windows Server 2016)中可用。

Here are a few resources for more reading: 这里有一些资源供您阅读:

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 我应该使用调试构建可执行文件还是发布构建可执行文件来安装Windows服务? - Should I use debug build executable or release build executable to install a windows service? 我应该让我的服务器程序在Windows上作为Windows服务运行吗 - Should I make my server program run as a Windows Service on Windows 需要制作一个简单的Windows应用程序,我应该使用什么样的语言? - need to make a simple Windows app, what languague should I use? Mac / Windows Java应用程序应使用哪种打包工具? - What packaging tool should I use for a Mac/Windows Java app? 我应该使用什么信号来终止/杀死Windows上的应用程序? - What signals should I use to terminate/kill applications on Windows? 我应该在Windows中使用Mercurial哪个合并工具? - Which merge tool should I use with Mercurial in Windows? 在Windows中,我应该使用CreateFile还是fopen,除了可移植性? - In Windows, should I use CreateFile or fopen, portability aside? 我应该在DirectX中使用std :: string或Windows数据类型吗? - Should I use std::string or Windows data types with DirectX? 我应该安装什么来使用 c++ 中的命名空间 Windows::Devices? - What should I install to use namespace Windows::Devices in c++? 如果我想开发分层服务提供程序以支持所有Windows操作系统,我应该期待什么问题? - If I want to develop Layered Service Provider to support all Windows OS's, what problems should I expect?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM