windows IISRESET 和 IIS 停止-启动命令的区别
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/22084561/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Difference between IISRESET and IIS Stop-Start command
提问by Sunny
Is there any difference between commands iisreset
and iisreset /stop
followed by iisreset /start
?
命令iisreset
和iisreset /stop
后跟有什么区别iisreset /start
吗?
回答by Baljeetsingh
Take IISReset as a suite of commands that helps you manage IIS start / stop etc.
将 IISReset 作为一组命令,帮助您管理 IIS 启动/停止等。
Which means you need to specify option (/switch
) what you want to do to carry any operation.
这意味着您需要指定选项 ( /switch
) 来执行任何操作。
Default behavior OR default switch is /restart
with iisreset
so you do not need to run command twice with /start
and /stop
.
默认行为或默认开关为/restart
with,iisreset
因此您无需使用/start
and运行命令两次/stop
。
Hope this clarifies your question. Check this MS DOS help picture you will understand.
希望这能澄清你的问题。检查此 MS DOS 帮助图片您将了解。
回答by jewelhuq
The following was tested for IIS 8.5 and Windows 8.1.
以下内容针对 IIS 8.5 和 Windows 8.1 进行了测试。
As of IIS 7, Windows recommends restarting IIS via net stop/start
. Via the command prompt (as Administrator):
从 IIS 7 开始,Windows建议通过net stop/start
. 通过命令提示符(作为管理员):
> net stop WAS
> net start W3SVC
net stop WAS
will stop W3SVC
as well. Then when starting, net start W3SVC
will start WAS
as a dependency.
net stop WAS
也会停止W3SVC
。然后在启动时,net start W3SVC
将WAS
作为依赖项启动。