[英]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.