批量启动application pool

在powershell中执行

Get-ChildItem IIS:\AppPools | where {$_.state -eq "Stopped"} | Start-WebAppPool

 

需要确保以下2个service是启动的

Start-Service WAS     (windows process activation service)

Start-Service W3SVC

 

 

导致application pool停止的原因

application pool和was 停止的原因是,使用web platform installer安装url rewrite。安装失败之后导致的,

=== Verbose logging started: 3/6/2019 14:35:58 Build type: SHIP UNICODE 5.00.10011.00 Calling process: C:\Program Files\Microsoft\Web Platform Installer\WebPlatformInstaller.exe ===
MSI (c) (6C:D0) [14:35:58:019]: Resetting cached policy values
MSI (c) (6C:D0) [14:35:58:019]: Machine policy value 'Debug' is 0
MSI (c) (6C:D0) [14:35:58:019]: ******* RunEngine:
******* Product: C:\Users\clu\AppData\Local\Microsoft\Web Platform Installer\installers\UrlRewrite2\8F41A67FA49110155969DCCFF265B8623A66448F\rewrite_amd64_en-US.msi
******* Action:
******* CommandLine: **********
MSI (c) (6C:D0) [14:35:58:019]: Client-side and UI is none or basic: Running entire install on the server.
MSI (c) (6C:D0) [14:35:58:019]: Grabbed execution mutex.
MSI (c) (6C:D0) [14:35:58:022]: Cloaking enabled.
MSI (c) (6C:D0) [14:35:58:022]: Attempting to enable all disabled privileges before calling Install on Server
MSI (c) (6C:D0) [14:35:58:026]: Incrementing counter to disable shutdown. Counter after increment: 0
MSI (s) (C4:E0) [14:35:58:033]: Running installation inside multi-package transaction C:\Users\clu\AppData\Local\Microsoft\Web Platform Installer\installers\UrlRewrite2\8F41A67FA49110155969DCCFF265B8623A66448F\rewrite_amd64_en-US.msi
MSI (s) (C4:E0) [14:35:58:033]: Grabbed execution mutex.
MSI (s) (C4:18) [14:35:58:038]: MainEngineThread is returning 1603
MSI (s) (C4:E0) [14:35:58:039]: User policy value 'DisableRollback' is 0
MSI (s) (C4:E0) [14:35:58:039]: Machine policy value 'DisableRollback' is 0
MSI (s) (C4:E0) [14:35:58:039]: Incrementing counter to disable shutdown. Counter after increment: 0
MSI (s) (C4:E0) [14:35:58:039]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts 3: 2
MSI (s) (C4:E0) [14:35:58:041]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts 3: 2
MSI (s) (C4:E0) [14:35:58:042]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied. Counter after decrement: -1
MSI (c) (6C:D0) [14:35:58:044]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied. Counter after decrement: -1
MSI (c) (6C:D0) [14:35:58:044]: MainEngineThread is returning 1603
=== Verbose logging stopped: 3/6/2019 14:35:58 ===

 

另外这玩意还导致了Net Tcp Listener挂掉了,

 

转载于:https://www.cnblogs.com/chucklu/p/10483059.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值