Switch IIS does not restart the computer

xiaoxiao2021-03-06  38

Switch IIS does not restart the computer

Sometimes we have inadvertently use a dead cycle in the web program such as: ASP, or when testing the DLL component, hangs. At this time, IIS stopped responding, we have to continue our work, restart IIS service.

However, this process is still executing, but the Internet service manager can't turn off. When we want to end the INetInfo.exe or Dllhost.exe process, we get a refusal information, of course, you are administrator privilege or get this prompt. You may also use NET STOP, but the time of spend is longer, and sometimes it is not responding.

At this time, we only restart the computer. Can you restart your computer and RESTART IIS?

Of course, Microsoft installs a tool at the same time when installing IIS, called Iisreset, you can find it in WinNT / System32, he can use it as a command line as in the WinNT / System 32. It has multiple parameters, the following is a few important, and it is also the parameters of our paper:

/ Restart stops IIS / Start Start IIS (If Stop) / Stop Stop IIS (If Start) / Reboot Restart Computer / RebootONERROR If Stop IIS Failed Restart Computer / NOFORCE Does Not Forced IIS Stop / Timeout: X After X Second, IIS It is forced to stop unless the / noforce parameter is given. If / rebootonerror gives it, it restarts the computer.

转载请注明原文地址:https://www.9cbs.com/read-72292.html

New Post(0)