Restarting IIS using the IISRESET command

Source: Internet
Author: User

If you accidentally use a dead loop in PHP, or when you test the DLL component, hang up. IIS stops responding and restarts the IIS service with the IISReset command.

However, the process is still running and Internet Service Manager is not closed. And when you want to end Inetinfo.exe or Dllhost. EXE process, we get a rejection of the information, of course, you are administrator rights or get this hint. You may also use net stop, but it takes a long time and sometimes does not respond. Then we have to reboot the computer. Can you restart IIS without restarting your computer?

Of course, Microsoft installs IIS while installing a tool called IISReset, which you can find in Winnt\System32, which can be used as a command line with Ping. It has multiple parameters, and here are a few important, as well as the pertinent parameters of our article:

Restart the IIS server and start-> run->cmd (listed below for related operations commands):

Start after Iisreset/restart stop

Iisreset/start Start IIS (if stopped)

Iisreset/stop Stop IIS (if started)

Iisreset/reboot Reboot the computer

Iisreset/rebootonerror Restart the computer if IIS fails to stop

Iisreset/noforce do not force IIS to stop

Iisreset/timeout:x after X seconds, IIS is forced to stop unless the/noforce parameter is given.

The most convenient use, of course, you can also run under cmd:

Iisreset/start

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.