使用Windows服务时出现问题 [英] A problem in working with windows service

查看:134
本文介绍了使用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服务时出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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