Difference between IISRESET and IIS Stop-Start com

2020-05-13 07:00发布

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

2条回答
混吃等死
2楼-- · 2020-05-13 07:00

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.

enter image description here

查看更多
迷人小祖宗
3楼-- · 2020-05-13 07:02

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.

查看更多
登录 后发表回答