“aspnet_regiis -ir”和“aspnet_regiis -ir”有什么区别?和“aspnet_regiis -iru”?

发布于 2024-09-30 19:15:09 字数 486 浏览 2 评论 0原文

aspnet_regiis 实用程序的帮助文本对“-ir”选项进行了以下说明:

Install this version of ASP.NET, register only. Do not change any web applications to use this version.

对于“-iru”选项进行了以下说明:

Install this version of ASP.NET. If there are any existing applications that uses ASP.NET, it will not change IIS configuration to use this version.

它必须是我的英语,但我不明白有什么区别 - 两者都不会将任何应用程序更改为使用这个版本。我担心自己尝试这个不会很精确,因为我几乎不知道该去哪里调查......

有人知道其中的区别吗?

The help text of aspnet_regiis utility says the following for "-ir" option:

Install this version of ASP.NET, register only. Do not change any web applications to use this version.

And the following for "-iru" option:

Install this version of ASP.NET. If there are any existing applications that uses ASP.NET, it will not change IIS configuration to use this version.

It must be my English, but I do not understand what the difference is - both won't change any apps to use this version. And I'm afraid that trying this out myself won't be precise, since I hardly know where to look into...

Does anyone know the difference?

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

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

发布评论

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

评论(3

日久见人心 2024-10-07 19:15:09

ASP.NET IIS 注册选项摘要

-i

安装 ASP.NET 并更新现有应用程序以使用指定版本的应用程序池。

-ir

安装并注册 ASP.NET。此选项与 -i 选项相同,只是它不会更改与任何现有应用程序池关联的 CLR 版本。

-iru 

如果 ASP.NET 当前未向 IIS 注册,则执行 -i 任务。
如果 ASP.NET 的早期版本已在 IIS 中注册,则执行 -ir 任务。

本质上,根据您之前的设置,-iru 可能会也可能不会将现有应用程序池更新到您正在安装的 ASP.NET 版本。

希望这能解决问题。

ASP.NET IIS Registration Options Summary

-i

Install ASP.NET and updates existing applications to use the specified version of the application pool.

-ir

Installs and registers ASP.NET. This option is the same as the -i option except that it does not change the CLR version associated with any existing application pools.

-iru 

If ASP.NET is not currently registered with IIS, performs the tasks of -i.
If a previous version of ASP.NET is already registered with IIS, performs the tasks of -ir.

Essentially, depending on your previous setup, -iru may or may not update existing application pools to the version of ASP.NET you are installing.

Hope this clears things up.

随心而道 2024-10-07 19:15:09

我如何理解 aspnet_regiis.exe 的参数,通常应该使用开关 -iru 而不是 -ir。在 IIS 中安装 .NET Framework 并注册该 Framework 需要一些步骤,例如脚本映射:在 IIS 中关联不同 .NET 特殊扩展(请参阅 这个地方 例如)。安装可以在没有此步骤(开关 -ir)的情况下运行,但仅当以前版本的 ASP.NET 已在 IIS 中注册时,跳过这些步骤才更有意义。正是如此 aspnet_regiis.exe -iru。如果以前版本的 ASP.NET 没有在 IIS 中注册,则 aspnet_regiis.exe -iru 会在 IIS 中进行所有注册,并像 aspnet_regiis.exe -i 一样工作。如果以前版本的 ASP.NET 已在 IS 中注册,则 aspnet_regiis.exe -iru 的工作方式与 aspnet_regiis.exe -ir 类似。

How I understand the parameters of aspnet_regiis.exe the switch -iru should be typically used instead of -ir. The installation of .NET Framework and registration of the Framework in IIS needs some steps like script mapping: association of different .NET special extensions in IIS (see this place for example). The installation can run without the step (switch -ir), but it has more sense to skip the steps only if a previous version of ASP.NET is already registered with IIS. Exactly this do aspnet_regiis.exe -iru. If no previous version of ASP.NET is registered with IIS, then aspnet_regiis.exe -iru do make all registrations in IIS and work like aspnet_regiis.exe -i. If do a previous version of ASP.NET is already registered in IS the aspnet_regiis.exe -iru work like aspnet_regiis.exe -ir.

七颜 2024-10-07 19:15:09

根据 MSDN

< code>-u 参数“从计算机中卸载与 ASP.NET IIS 注册工具关联的 ASP.NET 版本。映射到此版本 ASP.NET ISAPI 的现有脚本会自动重新映射到最最近安装的剩余 ASP.NET ISAPI 版本。”

According to MSDN:

The usage of the -u parameter "uninstalls the version of ASP.NET that is associated with the ASP.NET IIS Registration tool from the computer. Existing script maps to this version of the ASP.NET ISAPI are automatically remapped to the most recent remaining ASP.NET ISAPI version installed."

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