使用Windows服务时出现问题

编程入门 行业动态 更新时间:2024-10-09 09:19:14
本文介绍了使用Windows服务时出现问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我已经创建了一个具有自动启动类型的Windows服务,并将其成功安装到我的系统中,但是直到我重新启动系统后它才启动,我的意思是我的系统启动时它不会启动,但是我重新启动时它才启动我的系统. 这句话是真的吗? "Windows服务仅在Windows重新启动时才启动". .

Hi, i have created a windows service with Automatic starttype and install it in my system successfully but it does not start until i restart my system, i mean it does not start when my system boots but also it starts just when i restart my system. is this statement true? "windows service just starts when windows restarts".

推荐答案

如果启动类型设置为自动",则该服务将Windows启动时启动.如果是手动的,则必须手动启动该服务. 如果您刚刚安装了该服务,则该服务不会自动启动,因此,如果要启动并运行该服务,则可以手动启动该服务或启动Windows. 如果您意味着在您注销/登录后该服务没有启动,那么这是对的.服务独立于桌面会话. If the startup type is set to Automatic, the service will start when Windows starts. If it''s manual, you have to manually start the service. If you have just installed the service, it doesn''t start automatically so if you want it up and running you can either start the service manually or boot the Windows. If you meant that the service doesn''t start when you log off/on, then that''s true. Services are independent from desktop sessions.

更多推荐

使用Windows服务时出现问题

本文发布于:2023-10-31 10:33:06,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1545820.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Windows

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!