windows - IIS w3svc 错误

标签 windows http iis service

我试图在 IIS 中启动我的网站,每当我尝试启动我的网站时,我都会收到以下错误

Cannot start service w3svc on computer

我尝试启动“World wide web publishing service”,但无法启动,如它所说:

Error 1068: The dependency service or group failed to start

同时,当我检查我的日志时,我发现了这个错误,

The World Wide Web Publishing Service service depends on the HTTP service which failed to start because of the following error:
The service cannot be started, either because it is disabled or because it has no enabled devices associated with it.

请帮助我,我被这个错误严重困扰了,我花了一个星期的时间研究这个错误,但还没有找到解决方案。

最佳答案

  1. 确认“Windows Management Instrumentation”已启动且其启动类型设置为自动

  2. 还要确保为万维网发布服务启动了以下依赖服务:

    • Windows 进程激活服务
    • 远程过程调用 (RPC)
    • DCOM 服务器进程启动器
    • RPC 端点映射程序。
  3. 打开注册表,导航到 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\HTTP]:
    a) 双击 Start 并将值数据从 4(禁用)更改为 3(自动)。
    b) 如果 "NoRun" 键存在,则删除它。

  4. (警告:首先备份任何 IIS 网站配置)。从“打开或关闭Windows功能”中卸载“Internet信息服务”和“Windows进程激活服务(如果已安装)”并重新启动您的PC。

  5. 在CMD中输入以下命令并回车:

     net start http
    

现在它会通知您服务已经在运行。

  1. 通过“打开或关闭 Windows 功能”重新安装 Internet 信息服务。

  2. 启动 IIS,我的网站现在启动了,不再有“w3svc 服务未运行错误”。

关于windows - IIS w3svc 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21023622/

相关文章:

windows - 使用 regex-compat 的 Windows 上的简单正则表达式替换崩溃

c++ - 串行通信 C++ ReadFile()

java - 发布请求。安卓

windows - 如何解决本地 Windows UWP (Cordova) 网络问题

flash - 重复的引荐来源 header - HTTP.sys barfs

c# - 托管到服务器时 WCF 出错

windows - 配置 git 以支持使用不同操作系统的程序员

windows - 批量语法问题

c# - ASP.NET MVC 项目中某些请求的巨大延迟

c# - WMI - 读取远程域计算机中的 IIS 应用程序时抛出异常 'Access Denied'