1. 设置iis pool:

通过 powershell 配置 IIS

cls
Import-Module WebAdministration
Get-ChildItem IIS:\apppools | ForEach-Object{
        $name = $_.name
        Write-Host $_.name

        $pool = Get-Item IIS:\AppPools\$name
        $pool.recycling.periodicRestart.time = [TimeSpan]::Zero
        $pool | Set-Item

        Clear-ItemProperty "IIS:\AppPools\$($pool.Name)" -Name recycling.periodicRestart.schedule
        Set-ItemProperty "IIS:\AppPools\$($pool.Name)" `
            -Name recycling.periodicRestart.schedule -Value @{value='01:01:00'}
}

 

 

2. 设置startup time limit

通过 powershell 配置 IIS

#Add-PSSnapin Microsoft.SharePoint.PowerShell
        Get-ChildItem IIS:\apppools | ForEach-Object{
            C:\windows\system32\inetsrv\appcmd  set apppool $_.name  /processModel.startupTimeLimit:00:10:00
        }

相关文章:

  • 2021-11-10
  • 2022-01-11
  • 2022-12-23
  • 2021-04-13
  • 2021-06-15
  • 2022-01-04
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-11
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案