使用appcmd设置IIS10网站的物理路径

问题描述 投票:0回答:1

如何在IIS10中使用appcmd设置网站的物理路径?

类似...

appcmd set site summit /[path='/'].path:c:\newpath

这是我要更改的设置...

enter image description here

iis iis-10
1个回答
1
投票

您可以使用以下命令更改站点物理路径:

appcmd set site /site.name:"site name" /application[path='/'].virtualDirectory[path='/'].physicalPath:"D:\newpath"

enter image description here

不要忘记以管理员身份运行命令提示符。

© www.soinside.com 2019 - 2024. All rights reserved.