IISReset做什么?

在IIS 6上,IIS重置是做什么的?

请比较回收一个应用程序池,并停止和启动一个ASP.NET网站。

如果你replace一个DLL或编辑/replace一个ASP.NET网站上的web.config就像停止和启动该网站一样?

IISReset停止并重新启动整个Web服务器(包括非ASP.NET应用程序)
回收应用程序池只会影响在该应用程序池中运行的应用程序。
在Web应用程序中编辑web.config只会影响该Web应用程序(仅回收该应用程序)。
在机器上编辑machine.config将回收正在运行的所有应用程序池。

IIS将监视应用程序的/ bin目录。 无论何时在这些DLL中检测到更改,它都会回收应用程序并重新加载这些新的dll。 它也以同样的方式监视web.config&machine.config,并为适用的应用程序执行相同的操作。

IISReset重新启动整个networking服务器(包括所有关联的网站)。 如果你只是想重置一个ASP.NET网站,你应该只是回收该AppDomain。

重置ASP.NET网站的最常用方法是编辑web.config文件,但也可以使用以下命令创buildpipe理页面:

public partial class Recycle : System.Web.UI.Page { protected void Page _Load(object sender, EventArgs e) { HttpRuntime.UnloadAppDomain(); } } 

这是我写的更多信息的博客文章: 避免ASP.NET应用程序中的IISRESET

它运行在整个IIS进程树上,而不仅仅是你的应用程序池。

 C:\>iisreset /? IISRESET.EXE (c) Microsoft Corp. 1998-1999 Usage: iisreset [computername] /RESTART Stop and then restart all Internet services. /START Start all Internet services. /STOP Stop all Internet services. /REBOOT Reboot the computer. /REBOOTONERROR Reboot the computer if an error occurs when starting, stopping, or restarting Internet services. /NOFORCE Do not forcefully terminate Internet services if attempting to stop them gracefully fails. /TIMEOUT:val Specify the timeout value ( in seconds ) to wait for a successful stop of Internet services. On expiration of this timeout the computer can be rebooted if the /REBOOTONERROR parameter is specified. The default value is 20s for restart, 60s for stop, and 0s for reboot. /STATUS Display the status of all Internet services. /ENABLE Enable restarting of Internet Services on the local system. /DISABLE Disable restarting of Internet Services on the local system. 

应用程序池回收将重新启动该应用程序池的w3wp.exe进程,因此它只会影响在该应用程序池中运行的网站。

IISReset重新启动所有w3wp.exe进程和任何其他IIS相关的服务,即NNTP或FTP服务。

我认为改变web.config/bin并没有回收整个应用程序池,但我不确定。

它停止并启动IIS组成的服务。

您可以将其视为closures相关程序并重新启动。

在这里,关于iisreset的是technet的

在某些configuration更改生效或应用程序不可用时,您可能需要重新启动Internet信息服务(IIS)。 重新启动IIS与第一次停止IIS,然后再次启动,除了它是用一个命令完成。

您可以在Microsoft文档中find有关哪些服务受到影响的更多信息。

当您更改ASP.NET网站的configuration文件时,它会重新启动应用程序以反映更改…

当您执行IIS重置时,将重新启动在该IIS实例上运行的所有应用程序。

编辑web.config文件或更新bin文件夹中的DLL只是为该应用程序回收工作进程,而不是整个池。

IISReset重新启动整个networking服务器(包括所有关联的网站)。 如果您只是想重置一个ASP.NET网站,您应该只是回收该应用程序域。