按特定顺序运行 Windows 服务 [英] run windows services in specific order

查看:38
本文介绍了按特定顺序运行 Windows 服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以更改 Windows 服务的顺序或运行一个又一个服务?

Is it possible to change the order of windows services or run one service after another?

我想要这个的原因:我的 IIS 配置位于共享驱动器上.当我重新启动服务器时,它首先运行 IIS (w3wp) 服务并且无法启动它.因为此时共享网络驱动器不可用.所以我想先完成网络服务映射所有网络驱动器,然后运行IIS服务.所以我不需要每次重新启动服务器时都重新启动 IIS 服务.有没有其他方法可以实现这一目标?

The reason i want this: I have IIS configuration located on a shared drive. And when i reboot server, it first run IIS (w3wp) service and couldn't start it. because at that point, shared network drive is not available. So i want to first finishing the network service to map all network drives and then run IIS service. so i don't need to restart IIS service every-time i reboot the server. is there any other way to achieve this?

谢谢!

推荐答案

如果您运行的是 Server 2008/Vista/7,您可以将 IIS 服务设置为延迟启动.

If you're running Server 2008 / Vista / 7 you can set the IIS service for delayed start.

有两层:首先是所有自动"的东西,然后是自动(延迟启动)"的东西.

There are sort of two tiers: first all the "automatic" stuff, then the "automatic (delayed start)" stuff.

这篇关于按特定顺序运行 Windows 服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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