IIS 返回错误无法启动 W3SVC

Md *_*edi 7 iis-7

首先,我想请求大家不要将此查询标记为重复,因为我试图找出问题但无法这样做。

我已经安装了 IIS 并且工作正常,但突然停止工作。没有安装新软件或删除任何软件和服务。

首先,我通过从程序和功能中取消选中它来卸载 IIS -> 打开或关闭 Windows 功能。然后再次安装 IIS 和 windows 发布服务。

因此,选中的框是应用程序开发功能是:

  1. .net 可扩展性
  2. ASP
  3. ASP.NET
  4. ISAPI 扩展
  5. ISAPI 过滤器

在 windows 发布服务下选中的框是:

  1. 过程模型。

然后我重新启动系统,然后尝试启动 IIS 服务器,但出现此错误。

无法在计算机“.”上启动服务 W3SVC。

所以,我搜索了网络,发现我应该这样做

net stop w3svc
net stop IISAdmin
net start IISAdmin
net start w3svc

net start IISAdmin -- > the service name is invalid

net start w3svc  --> the dependency service or group service failed to start
Run Code Online (Sandbox Code Playgroud)

甚至我做了iisreset /restart然后输出是:

Attempting stop...
Internet services successfully stopped
Attempting start...
Restart attempt failed.
The IIS Admin Service or the World Wide Web Publishing Service, or a service dependent on them failed to start.  The service, or dependent services, may had an error during its startup or may be disabled.
Run Code Online (Sandbox Code Playgroud)

然后我什至没有在 services.msc 中找到 IIS Admin。

各位大侠帮帮我...

如果您需要更多信息,请告诉我。

提前致谢。

小智 1

如果您\xe2\x80\x99在使用w3svc服务时遇到问题

\n\n

首先尝试这个

\n\n

转到任务管理器 > 进程并手动停止 W3SVC 进程。执行此操作后,重新启动 IIS 时该进程应该正常启动

\n\n

试试第二个

\n\n

运行 > appwiz.cpl > 打开或关闭 Windows 功能 > 取消选中 \xe2\x80\x9cInternet Information Services\xe2\x80\x9d 和 \xe2\x80\x9cWindows Process Activation Service\xe2\x80\x9d

\n\n

重新启动计算机。\n运行 > appwiz.cpl > 安装 \xe2\x80\x9cInternet Information Services\xe2\x80\x9d 和 \xe2\x80\x9cWindows Process Activation Service\xe2\x80\x9d

\n\n

那么这个\xe2\x80\xa6如果还是不行\xe2\x80\x99就不行

\n\n
    \n
  1. 确认 \xe2\x80\x9cWindows Management Instrumentation\xe2\x80\x9d 已启动,并且其启动类型设置为自动。

  2. \n
  3. 另请确保为万维网发布服务启动以下依赖项服务:

  4. \n
\n\n

Windows 进程激活服务\n远程过程调用(RPC)\nDCOM 服务器进程启动器\nRPC 终结点映射器。

\n\n
    \n
  1. 打开regedit,导航到[HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\HTTP]:
  2. \n
\n\n

a) 双击“开始”并将值数据从 4(禁用)更改为 3(自动)。\nb) 删除 \xe2\x80\x9cNoRun\xe2\x80\x9d 项(如果该项存在)。

\n\n
    \n
  1. 从\n\xe2\x80\x9c卸载\xe2\x80\x9c互联网信息服务\xe2\x80\x9d和\xe2\x80\x9cWindows进程激活服务(如果已安装)\xe2\x80\x9d打开Windows功能或关闭\xe2\x80\x9d 并重新启动电脑。

  2. \n
  3. 在 CMD 中输入以下命令并按 Enter:

  4. \n
\n\n

net start http\n现在它会通知您服务已经在运行。

\n\n
    \n
  1. 从 \xe2\x80\x9c 重新安装 Internet 信息服务打开或关闭 Windows 功能\xe2\x80\x9d。
  2. \n
\n\n

验证 C:\\Windows\\System32\\inetsrv\\config\\applicationHost.config 看起来正确。检查此文件中可能导致问题的 \xe2\x80\x9csystem.web\xe2\x80\x9d 部分。删除该部分。

\n\n
    \n
  1. 确保这两个服务正在运行并且它们的启动类型是自动的。如果它们被禁用并且没有运行,右键单击它们并转到属性并更改它们。
  2. \n
\n\n

Windows 进程激活服务\n万维网发布服务

\n\n
    \n
  1. 启动 IIS,我的网站现在已启动,不再出现 \xe2\x80\x9cw3svc 服务未运行错误。\xe2\x80\x9d

  2. \n
  3. 重新启动计算机。

  4. \n
\n