zoukankan      html  css  js  c++  java
  • 通过 powershell 配置 IIS

    1. 设置iis pool:

    image

    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

    image

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

  • 相关阅读:
    docker 基础
    shell
    MySQL之MGR
    MySQL之读写分离
    MySQL主从复制
    MySQL之数据类型
    MySQL之索引与约束条件
    SQL语句进阶
    SQL语句初识
    Linux之MySQL安装
  • 原文地址:https://www.cnblogs.com/fengwenit/p/3848173.html
Copyright © 2011-2022 走看看