在windows service中启动类型“Automatic” 和 “Automatic (Delayed start)” 有何不同?

问题:

When installing Windows services there are two options for automatically starting a Windows service on Windows startup. One is Automatic, and the other is Automatic (Delayed start). What is the difference between these two in detail?

 

回答:

In short, services set to Automatic will start during the boot process, while services set to start as Delayed will start shortly after boot.

Starting your service Delayed improves the boot performance of your server and has security benefits.

Update: "shortly after boot" is actually 2 minutes after the last "automatic" service has started, by default.  This can be configured by a registry key:

The registry keys of interest (At least in some versions of windows) are: HKLM\SYSTEM\CurrentControlSet\services\<service name>\DelayedAutostart will have the value 1 if delayed, 0 if not.

HKLM\SYSTEM\CurrentControlSet\services\AutoStartDelay decimal number of seconds to wait, may need to create this one. Applies globally to all Delayed services.

 

原文链接

 

转载于:https://www.cnblogs.com/OpenCoder/p/9709257.html

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值