我想弄清楚服务何时启动和终止。有相关的日志文件吗?
最佳答案
在 Windows 7 下,打开事件查看器。您可以按照 Gishu 建议的 XP 方式执行此操作,从命令行输入 eventvwr
,或者打开控制面板,选择系统和安全 ,然后是管理工具,最后是事件查看器。它可能需要 UAC 批准或管理员密码。
在左 Pane 中,展开Windows 日志,然后展开系统。您可以使用右侧“操作” Pane 中的过滤当前日志...来过滤日志,然后选择“服务控制管理器”。或者,根据您需要此信息的原因,您可能只需要查看错误条目。
实际的日志输入 Pane (未显示)非常用户友好且不言自明。您将查找如下消息:
"The Praxco Assistant service entered the stopped state."
"The Windows Image Acquisition (WIA) service entered the running state."
"The MySQL service terminated unexpectedly. It has done this 3 time(s)."
关于windows-services - 是否有有关 Windows 服务状态的日志文件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1067531/