IIS已停止运行,无法启动。
当我检查服务时,w3svc的依赖关系都在运行,但是无法启动w3svc。
C:\Users\lust4
λ sc qc W3SVC
[SC] QueryServiceConfig Success
SERVICE_NAME: W3SVC
TYPE : 20 WIN32_SHARE_PROCESS
START_TYPE : 2 AUTO_START
ERROR_CONTROL : 1 NORMAL
BINARY_PATH_NAME : C:\WINDOWS\system32\svchost.exe -k iissvcs
LOAD_ORDER_GROUP :
TAG : 0
DISPLAY_NAME : World Wide Web 发布服务
DEPENDENCIES : WAS
: HTTP
SERVICE_START_NAME : LocalSystem
C:\Users\lust4
λ sc query WAS
SERVICE_NAME: WAS
TYPE : 30 WIN32
STATE : 4 RUNNING
(STOPPABLE, PAUSABLE, ACCEPTS_SHUTDOWN)
WIN32_EXIT_CODE : 0 (0x0)
SERVICE_EXIT_CODE : 0 (0x0)
CHECKPOINT : 0x0
WAIT_HINT : 0x0
C:\Users\lust4
λ sc query HTTP
SERVICE_NAME: HTTP
TYPE : 1 KERNEL_DRIVER
STATE : 4 RUNNING
(STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN)
WIN32_EXIT_CODE : 0 (0x0)
SERVICE_EXIT_CODE : 0 (0x0)
CHECKPOINT : 0x0
WAIT_HINT : 0x0
C:\Users\lust4
λ sc query W3SVC
SERVICE_NAME: W3SVC
TYPE : 30 WIN32
STATE : 1 STOPPED
WIN32_EXIT_CODE : 1066 (0x42a)
SERVICE_EXIT_CODE : 2147943468 (0x8007042c)
CHECKPOINT : 0x0
WAIT_HINT : 0x0
C:\Users\lust4
以下是事件日志,并说the dependency service or group failed to start
:
+ <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
- <System>
<Provider Name="Service Control Manager" Guid="{555908d1-a6d7-4695-8e1e-26931d2012f4}" EventSourceName="Service Control Manager" />
<EventID Qualifiers="49152">7024</EventID>
<Version>0</Version>
<Level>2</Level>
<Task>0</Task>
<Opcode>0</Opcode>
<Keywords>0x8080000000000000</Keywords>
<TimeCreated SystemTime="2016-10-10T09:46:36.061057200Z" />
<EventRecordID>3129</EventRecordID>
<Correlation />
<Execution ProcessID="720" ThreadID="4088" />
<Channel>System</Channel>
<Computer>lust-sp</Computer>
<Security />
</System>
- <EventData>
<Data Name="param1">World Wide Web Publishing Service</Data>
<Data Name="param2">%%2147943468</Data>
<Binary>570033005300560043000000</Binary>
</EventData>
</Event>
尝试重新安装IIS(关闭iis功能=&gt; restart =&gt;启用iis功能),无法正常工作。 :(
试过这个:IIS w3svc error
答案 0 :(得分:2)
在这里找到解决方案,问题的原因是win10内幕14942问题:
进行Web开发的内部人员可能会发现自己的本地Intranet服务器无法访问,因为服务主机分离将使IIS World Wide Web Publishing服务(W3Svc)无法成功启动。要解决此问题:
Run the following from an admin cmd line (or edit the registry accordingly):
REG ADD HKLM\SYSTEM\CurrentControlSet\Services\W3SVC /v SvcHostSplitDisable /t REG_DWORD /d 1 /f
REG ADD HKLM\SYSTEM\CurrentControlSet\Services\WAS /v SvcHostSplitDisable /t REG_DWORD /d 1 /f
Reboot the system, so that the W3Svc and WAS services share a service host process.
了解详情