Is there any difference between commands iisreset
and iisreset /stop
followed by iisreset /start
?
相关问题
- Inheritance impossible in Windows Runtime Componen
- how to get running process information in java?
- Is TWebBrowser dependant on IE version?
- How can I have a python script safely exit itself?
- I want to trace logs using a Macro multi parameter
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
withiisreset
so you do not need to run command twice with/start
and/stop
.Hope this clarifies your question. Check this MS DOS help picture you will understand.
The following was tested for IIS 8.5 and Windows 8.1.
As of IIS 7, Windows recommends restarting IIS via
net stop/start
. Via the command prompt (as Administrator):net stop WAS
will stopW3SVC
as well. Then when starting,net start W3SVC
will startWAS
as a dependency.