------------管理IIS站点
C:\Windows\System32\inetsrv\appcmd.exe
--停止站点
appcmd stop site "DevOpsWeb/"
--启动站点
appcmd start site "DevOpsWeb/"
--停止程序池
appcmd stop apppool /apppool.name:".NET v4.5"
--启动程序池
appcmd start apppool /apppool.name:".NET v4.5"
--添加站点
appcmd add site /name:"web1" /bindings:http/*:8090: /applicationDefaults.applicationPool:".NET v4.5" /physicalPath:"D:\WebSite\DevOpsWeb"
--删除站点
appcmd delete site "web1"
--添加程序池
appcmd add apppool /name:"pool1" /managedRuntimeVersion:"v4.0" /queueLength:"5000" /recycling.periodicRestart.time:00:00:00 /processModel.idleTimeout:01:00:00
--删除程序池
appcmd delete apppool /apppool.name:"pool1"
--更改路径
appcmd set app "DevOpsWeb/" /[path='/'].physicalPath:"D:\WebSite\DevOpsWeb"
--更改程序池
appcmd set app "DevOpsWeb/" /applicationPool:".NET v4.5"