我试图在 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.
请帮助我,我被这个错误严重困扰了,我花了一个星期的时间研究这个错误,但还没有找到解决方案。
最佳答案
确认“Windows Management Instrumentation”已启动且其启动类型设置为
自动
。还要确保为万维网发布服务启动了以下依赖服务:
- Windows 进程激活服务
- 远程过程调用 (RPC)
- DCOM 服务器进程启动器
- RPC 端点映射程序。
打开注册表,导航到
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\HTTP]
:
a) 双击Start
并将值数据从4
(禁用)更改为3
(自动)。
b) 如果"NoRun"
键存在,则删除它。(警告:首先备份任何 IIS 网站配置)。从“打开或关闭Windows功能”中卸载“Internet信息服务”和“Windows进程激活服务(如果已安装)”并重新启动您的PC。
在CMD中输入以下命令并回车:
net start http
现在它会通知您服务已经在运行。
通过“打开或关闭 Windows 功能”重新安装 Internet 信息服务。
启动 IIS,我的网站现在启动了,不再有“w3svc 服务未运行错误”。
关于windows - IIS w3svc 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21023622/