使用控制台界面创建Windows服务 [英] create a windows service with an console interface

查看:80
本文介绍了使用控制台界面创建Windows服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个Windows服务,并在控制台上打印一些信息.控制台将不需要任何用户交互.这是方案.我想创建一个Windows服务,在特定端口上侦听传入的消息.接收到消息后,我想向控制台写入已接收到消息的信息.我已经通过将所有必要的引用添加到控制台项目中来创建Windows服务,我可以安装Windows服务,但是控制台无法启动.

I would like to create a windows service with an console printing out some information. The console will not need any user interaction. this is the scenario. I want to create a windows service, listening on a certain port for incoming messages. as soon as message is received, I would like to write to the console that a message has been received. I have created a windows service by adding all the necessary references to the console project, I can install the windows service, but the console does not launch.

is this possible?

推荐答案

看看这个: ^ ]


这篇关于使用控制台界面创建Windows服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆