等效的“aspnet_regiis -lk”是什么?在 Windows 7 上?

发布于 2024-08-29 23:55:53 字数 145 浏览 4 评论 0原文

或者:如何在 Windows 7 中找到 IIS 元数据库路径?

我以前只运行 aspnet_regiis -lk,但根据 aspnet_regiis 帮助,这是“Windows Vista 中不支持”...

Or: how do I find the IIS metabase paths in Windows 7?

I used to just run aspnet_regiis -lk, but this is "Not supported in Windows Vista" according to aspnet_regiis help...

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

扶醉桌前 2024-09-05 23:55:53

这是因为从 Windows Vista 开始,发布了新版本的 IIS (IIS 7),它在很多方面与旧版 IIS 体系结构有很大不同。

要控制新的 IIS,您应该使用 IIS 管理器 (UI),或者如果您需要控制台工具,请查看 C:\Windows\System32\inetsrv\AppCmd.exe

如果您想列出应用程序池及其.NET 版本:

> appcmd list apppool
APPPOOL "FlexLabs Bak" (MgdVersion:v4.0,MgdMode:Integrated,state:Stopped)
APPPOOL "OpenIdTest" (MgdVersion:v2.0,MgdMode:Integrated,state:Started)
APPPOOL "TestApp" (MgdVersion:v4.0,MgdMode:Integrated,state:Started)

获取 IIS 中的应用程序列表:

> appcmd list app
APP "FlexLabs/" (applicationPool:FlexLabs)
APP "TestApp/" (applicationPool:TestApp)

获取站点列表:(

> appcmd list site
SITE "TestApp" (id:4,bindings:http/*:82:,state:Started)

注意:这些是示例,并非我机器中的所有实际数据 :P )

当然,它可以做的事情比列出的要多得多..在某些方面它比 IIS 管理器更强大。
您正在寻找什么具体的东西吗?

UPD:
从这里退出: http ://mvolo.com/blogs/serverside/archive/2007/07/21/Anatomy-of-an-IIS7-configuration-path.aspx

如果您使用过 IIS6 和以前版本的 IIS,您很可能熟悉 IIS 元数据库路径。你知道,那些看起来像 LM/W3SVC/1/ROOT 的。这些元数据库路径用作识别 IIS 网站层次结构的一部分或其中的 URL 的机制,用于读取/写入其配置设置。
[...]
IIS7 使用全新的配置系统替换了元数据库,该系统基于 XML 配置文件的分布式层次结构,.NET Framework/ASP.NET 也使用该系统。这个配置系统与元数据库根本不同

一定要看看这篇文章,因为我认为这正是您在这种情况下寻找的东西

此外,请在此处查看有关它的更多信息:
http://learn.iis.net/page。 aspx/125/metabase-compatibility-with-iis-7/
基本上,您可以安装“IIS 6 Metabase Compatibility”服务器角色,并使用一些旧工具和脚本对其进行一些控制:)

This is because starting with Windows Vista, a new version of IIS is shipped (IIS 7) which is a LOT different in many ways than the older IIS architecture.

To control the new IIS, you should either be using the IIS manager (UI) or if you want a console tool take a look at C:\Windows\System32\inetsrv\AppCmd.exe

If you want to list the app pools and their .NET versions:

> appcmd list apppool
APPPOOL "FlexLabs Bak" (MgdVersion:v4.0,MgdMode:Integrated,state:Stopped)
APPPOOL "OpenIdTest" (MgdVersion:v2.0,MgdMode:Integrated,state:Started)
APPPOOL "TestApp" (MgdVersion:v4.0,MgdMode:Integrated,state:Started)

Get the list of applications in IIS:

> appcmd list app
APP "FlexLabs/" (applicationPool:FlexLabs)
APP "TestApp/" (applicationPool:TestApp)

Get the list of Sites:

> appcmd list site
SITE "TestApp" (id:4,bindings:http/*:82:,state:Started)

(Note: these are examples, not all the actual data from my machine :P )

It can do a lot more then list, of course.. and in some ways it's a lot more powerful than than IIS manager.
Anything specific you're looking for?

UPD:
Quiting from here: http://mvolo.com/blogs/serverside/archive/2007/07/21/Anatomy-of-an-IIS7-configuration-path.aspx

If you have worked with IIS6 and previous versions of IIS, you are most likely familiar with the IIS metabase paths. You know, the ones that look like LM/W3SVC/1/ROOT. These metabase paths serve as a mechanism to identify a part of the IIS website hierarchy, or a url therein, for the purposes of read/writing their configuration settings.
[...]
IIS7 repaces the metabase with a whole new configuration system, based on a distributed hierarchy of XML configuration files also used by the .NET Framework/ASP.NET. This confguration system is fundamentally different from the metabase

Definitely check out this article, as I think it's exactly what you're looking for in this case

Also, see more info about it here:
http://learn.iis.net/page.aspx/125/metabase-compatibility-with-iis-7/
Basically you can install the "IIS 6 Metabase Compatibility" server role, and have some control over it with some old tools and scripts :)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文