标签:2.0 bin 物理 span .net time pipe width rate
验证环境:Windows 7 IIS7
AppCmd.exe工具所在目录 C:\windows\sytstem32\inetsrv\目录下,所以执行命令前,先把当前目录切换到该目录下:
cd C:\Windows\System32\inetsrv
appcmd add site /name:"MyTestSite1" /bindings:http/*:8990: /physicalPath:"E:\TestSite\Site1"
解释:
/name | (必需) 站点名称 |
/bindings | 绑定列表 |
/physicalPath | 站点的物理路径 |
appcmd add apppool /name:MyTestSite1 /managedRuntimeVersion:v4.0 /managedPipelineMode:Integrated /enable32BitAppOnWin64:true /processModel.identityType:LocalSystem
解释:
/managedRuntimeVersion | 是.net Framework的版本 如:v1.0 v1.1或v2.0等 |
/managedPielineMode | 托管管道模式:Classic经典模式,Integrated集成模式 |
/enable32BitAppOnWin64 | 是否启用32位应用程序 |
/processModel.identityType | 进程模型--标识 |
(目前还没找到怎么在创建站点时指定应用程序池)
appcmd set site /site.name:MyTestSite1 /[path=‘/‘].applicationPool:MyTestSite1
appcmd delete site /site.name:MyTestSite1
appcmd delete apppool /apppool.name:MyTestSite1
appcmd stop site "MyTestSite1" appcmd start site "MyTestSite1" appcmd stop apppool "MyTestSite1" appcmd start apppool "MyTestSite1"
appcmd list sites
appcmd list apppools
标签:2.0 bin 物理 span .net time pipe width rate
原文地址:https://www.cnblogs.com/zzgblog/p/10093720.html