IISRESET 和 IIS 停止-启动命令之间的区别 [英] Difference between IISRESET and IIS Stop-Start command

查看:28
本文介绍了IISRESET 和 IIS 停止-启动命令之间的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

命令 iisresetiisreset/stop 后跟 iisreset/start 有什么区别吗?

解决方案

将 IISReset 作为一套命令,帮助您管理 IIS 启动/停止等.

这意味着你需要指定选项(/switch)你想做什么来进行任何操作.

默认行为或默认开关是 /restartiisreset 因此您不需要使用 /start 运行命令两次/停止.

希望这能澄清您的问题.iisreset/? 的输出供参考:

<块引用>

IISRESET.EXE (c) Microsoft Corp. 1998-2005用法:iisreset [计算机名]/RESTART 停止然后重新启动所有 Internet 服务./START 启动所有 Internet 服务./STOP 停止所有 Internet 服务./REBOOT 重新启动计算机./REBOOTONERROR 如果启动时出现错误,请重新启动计算机,停止或重新启动 Internet 服务./NOFORCE 如果出现以下情况,请不要强行终止 Internet 服务试图优雅地阻止它们失败了./TIMEOUT:val 指定要等待的超时值(以秒为单位)成功停止互联网服务.到期时如果超时,计算机可以重新启动指定了/REBOOTONERROR 参数.默认值是20s重启,60s停止,和 0s 用于重启./STATUS 显示所有 Internet 服务的状态./ENABLE 启用重新启动 Internet 服务在本地系统上./DISABLE 禁止重新启动 Internet 服务在本地系统上.

Is there any difference between commands iisreset and iisreset /stop followed by iisreset /start ?

解决方案

Take IISReset as a suite of commands that helps you manage IIS start / stop etc.

Which means you need to specify option (/switch) what you want to do to carry any operation.

Default behavior OR default switch is /restart with iisreset so you do not need to run command twice with /start and /stop.

Hope this clarifies your question. For reference the output of iisreset /? is:

IISRESET.EXE (c) Microsoft Corp. 1998-2005

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.

这篇关于IISRESET 和 IIS 停止-启动命令之间的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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