Difference between IISRESET and IIS Stop-Start command

感情迁移 提交于 2020-01-22 04:33:31

问题


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


回答1:


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. Check this MS DOS help picture you will understand.




回答2:


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
> net start W3SVC

net stop WAS will stop W3SVC as well. Then when starting, net start W3SVC will start WAS as a dependency.



来源:https://stackoverflow.com/questions/22084561/difference-between-iisreset-and-iis-stop-start-command

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!