Sometimes weProgramFor example, ASP accidentally uses an endless loop or fails to test the DLL component. At this time, IIS stops responding. Let's continue our work. Restart the IIS service. However, this process is still being executed and the Internet Service Manager cannot be closed. When you want to restore the inetinfo.exe or DLLHOST. EXE process, we get a Denied message. Of course, you still get this prompt if you are an administrator. You may also use net stop, but it takes longer and sometimes does not respond. At this time, we only need to restart the computer. Can I restart IIS without restarting my computer? Of course, Microsoft installed a tool named iisreset when installing IIS. You can find it in winnt/system32, which can be used in the command line like Ping. It has multiple parameters. Below are several important parameters that we have selected in this article:
| /Restart |
Start IIS |
| /Start |
Start IIS (if stopped) |
| /Stop |
Stop IIS (if started) |
| /Reboot |
Restart your computer |
| /Rebootonerror |
Restart your computer if you fail to stop IIS |
| /Noforce |
Do not force IIS to stop |
| /Timeout: x |
After x seconds, IIS is forcibly stopped unless the/noforce parameter is given. If/rebootonerror is given, it restarts the computer. |
You can also run the following command in cmd: This will save you a lot of time because you don't have to restart your computer. I suggest you use it frequently.
Author: Xiao He from: Blue ideal |
|