“路径”是什么意思?在 adsutil.vbs 中
我正在尝试使用 Windows 批处理文件启动和停止 IIS 中托管的网站,并发现有一个选项,通过 cscript.exe,您可以使用带有 START_SERVER 选项的 adsutil.vbs 文件。
我知道以下命令可以做到这一点,但我不明白我应该为“路径”输入什么,
cscript.exe adsutil.vbs START_SERVER path - starts the given web site
文档有以下示例
cscript.exe adsutil.vbs START_SERVER W3SVC/1
,但 W3SVC/1
与虚拟目录路径没有任何关系或应用程序名称。
你能帮我理解吗?
I am trying to start and stop a website hosted in IIS with windows batch file and found that there is an option that with cscript.exe you can make use of adsutil.vbs file with START_SERVER option.
I know that the following command will do that, but I don't understand what I am supposed enter for 'path'
cscript.exe adsutil.vbs START_SERVER path - starts the given web site
the documentation has a the following sample
cscript.exe adsutil.vbs START_SERVER W3SVC/1
but W3SVC/1
no way related to virtual directory path or the application name.
can you please help me understand??
more info on: http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/d3df4bc9-0954-459a-b5e6-7a8bc462960c.mspx?mfr=true
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
路径是网站的内部密钥。
它在 IIS 中可见
Path is the internal key of the website.
It is visible in IIS
在 IIS 中,您可以创建许多网站。每个站点都由 IIS 元数据库中唯一的 siteID 来标识。因此,
W3SVC/1
指的是第一个网站,通常是 IIS 中预先配置的默认网站
。In IIS you have the capability of creating many web sites. Each site is identified by a unique siteID within the IIS metabase. Hence,
W3SVC/1
refers to the web site number one, which is usually theDefault Web Site
that comes preconfigured in IIS.