“IISReset”是什么意思? 做?

发布于 2024-07-04 11:11:34 字数 138 浏览 17 评论 0原文

在 IIS 6 上,IIS 重置有什么作用?

请与回收应用程序池以及停止和启动 ASP.NET 网站进行比较。

如果您替换 DLL 或编辑/替换 ASP.NET 网站上的 web.config,这与停止和启动该网站相同吗?

On IIS 6, what does an IIS reset do?

Please compare to recycling an app pool and stopping and starting an ASP.NET web site.

If you replace a DLL or edit/replace the web.config on an ASP.NET web site is that the same as stopping and starting that web site?

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

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

发布评论

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

评论(9

笑叹一世浮沉 2024-07-11 11:11:34

这是 technet 所说的 iisreset

在某些配置更改生效之前或当应用程序变得不可用时,您可能需要重新启动 Internet 信息服务 (IIS)。 重新启动 IIS 与首先停止 IIS,然后再次启动它相同,只不过它是通过单个命令完成的。

Here what's technet has to say about iisreset

You might need to restart Internet Information Services (IIS) before certain configuration changes take effect or when applications become unavailable. Restarting IIS is the same as first stopping IIS, and then starting it again, except it is accomplished with a single command.

上课铃就是安魂曲 2024-07-11 11:11:34

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

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

When you change an ASP.NET website's configuration file, it restarts the application to reflect the changes...

When you do an IIS reset, that restarts all applications running on that IIS instance.

后来的我们 2024-07-11 11:11:34

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

Editing the web.config file or updating a DLL in the bin folder just recycles the worker process for that application, not the whole pool.

開玄 2024-07-11 11:11:34

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

IISReset restarts the entire webserver (including all associated sites). If you're just looking to reset a single ASP.NET website, you should just recycle that Application Domain.

拔了角的鹿 2024-07-11 11:11:34

它停止和启动 IIS 所包含的服务。

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

It stops and starts the services that IIS consists of.

You can think of it as closing the relevant program and starting it up again.

假情假意假温柔 2024-07-11 11:11:34

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

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

我认为更改 web.config/bin 不会回收整个应用程序池,但我对此不确定。

Application Pool recycling restarts the w3wp.exe process for that application pool, hence it will only affect web sites running in that application pool.

IISReset restarts ALL w3wp.exe processes and any other IIS related service, i.e. the NNTP or FTP Service.

I think changing web.config or /bin does not recycle the whole application pool, but I'm not sure on that.

波浪屿的海角声 2024-07-11 11:11:34

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

重置 ASP.NET 网站的最常见方法是编辑 web.config 文件,但您也可以使用以下内容创建管理页面:

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

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

IISReset restarts the entire webserver (including all associated sites). If you're just looking to reset a single ASP.NET website, you should just recycle that AppDomain.

The most common way to reset an ASP.NET website is to edit the web.config file, but you can also create an admin page with the following:

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

Here's a blog post I wrote with more info: Avoid IISRESET in ASP.NET Applications

全部不再 2024-07-11 11:11:34

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

IIS 将监视应用程序的 /bin 目录。 每当在这些 dll 中检测到更改时,它就会回收应用程序并重新加载这些新的 dll。 它还监视 web.config 和 machine.config 以相同的方式进行,并对适用的应用程序执行相同的操作。

IISReset stops and restarts the entire web server (including non-ASP.NET apps)
Recycling an app pool will only affect applications running in that app pool.
Editing the web.config in a web application only affects that web application (recycles just that app).
Editing the machine.config on the machine will recycle all app pools running.

IIS will monitor the /bin directory of your application. Whenever a change is detected in those dlls, it will recycle the app and re-load those new dlls. It also monitors the web.config & machine.config in the same way and performs the same action for the applicable apps.

若水微香 2024-07-11 11:11:34

它在整个 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.

It operates on the whole IIS process tree, as opposed to just your application pools.

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