是与如何安全QUOT;为aspnet_regiis -i"在生产服务器? [英] How safe is "aspnet_regiis -i" on a production server?

查看:141
本文介绍了是与如何安全QUOT;为aspnet_regiis -i"在生产服务器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有承载了许多Web应用程序中,大多比较简单的生产IIS服务器。 .NET Framework版本4.5已经安装在服务器上,但IIS尚未配置为使用它。我希望在新的应用程序中使用4.5。 <一href="http://stackoverflow.com/questions/13749138/asp-net-4-5-has-not-been-registered-on-the-web-server">This计算器帖子介绍如何使用命令来更新服务器为aspnet_regiis -i

I have a production IIS server that hosts a number of web apps, most of them relatively simple. The .NET framework version 4.5 has been installed on the server, but IIS has not yet been configured to use it. I want to use 4.5 on a new application. This Stackoverflow post describes how to update the server using the command aspnet_regiis -i.

微软这说命令...

安装了与Aspnet_regiis.exe关联的ASP.NET版本,并更新脚本在以下IIS元数据库根映射。只有脚本映射使用ASP.NET的早期版本进行更新的应用程序。使用较新版本的应用程序不受影响。

Installs the version of ASP.NET that is associated with Aspnet_regiis.exe and updates the script maps at the IIS metabase root and below. Only the script maps for applications that use an earlier version of ASP.NET are updated. Applications that use a later version are not affected.

我想我不完全理解的含义。我不能肯定,但我认为更新脚本映射是指所有现有的(旧的)应用程序将运行ASP.NET 4.5。我可能破坏任何现有的应用程序,如果我运行这个命令?

I guess I don't completely understand the implications. I'm not certain, but I think updating the "script maps" means all existing (older) applications will run ASP.NET 4.5. Am I likely to break any existing applications if I run this command?

推荐答案

如果您只想更新一个特定的网站,让其他使用他们目前正在使用的任何.NET版本,你可以告诉regiis更新一个站点通过使用 / S 开关。更新只是单一的网站是安全的,不会影响到其他网站。

If you only want to update a specific site, leaving the other to use whatever .NET version they are currently using, you can tell regiis to update a single site by using the /s switch. Updating just the single site is safe and will not affect other sites.

为aspnet_regiis / s的SVC /&LT; ID&GT; /根/&LT; yourVirtualDirectoryName&GT;

&LT; ID&GT; 是标识符字段中显示旁边的网站时 你打开IIS管理器,然后在树视图Web站点。 和可选,&LT; yourVirtualDirectoryName&GT; 是任何虚拟目录 要将这些更改应用到。 / s选项做的当前位置和所有子目录。 / SN将这样做的当前位置和NOT递归向下

<id> is the "Identifier" field that shows next to your site when you open the IIS manager and click on "Web Sites" in the tree view. And optionally, <yourVirtualDirectoryName> is any virtual directory you want to apply these changes to. The /s option does the current location and all subdirectories. /sn will do JUST the current location and NOT recurse down.

这篇关于是与如何安全QUOT;为aspnet_regiis -i&QUOT;在生产服务器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆