다음을 통해 공유


Starting and Stopping Web Sites

Applies To: Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1

By default, sites start automatically when your computer starts. Stopping a site does not interfere with other Internet services that are running. Pausing a site prevents the site from accepting new connections but does not affect requests that are already being processed. Starting a site resumes Internet services for the site.

You can start, stop, or pause a Web site using either IIS Manager or a command-line administration script. Both methods are detailed below.

Important

You must be a member of the Administrators group on the local computer to perform the following procedure or procedures. As a security best practice, log on to your computer by using an account that is not in the Administrators group, and then use the runas command to run IIS Manager as an administrator. At a command prompt, type runas /User:Administrative_AccountName "mmc %systemroot%\system32\inetsrv\iis.msc".

Procedures

To start, stop, or pause a Web site using IIS Manager

  • In IIS Manager, right-click the site you want to start, stop, or pause; and click Start, Stop, or Pause.

Note

If a site stops unexpectedly, IIS Manager might not correctly indicate the state of the site. In IIS, right-click the Web Sites folder and click Refresh to see the current state of all Web sites.

Important

You must be a member of the Administrators group on the local computer to run scripts and executables. As a security best practice, log on to your computer by using an account that is not in the Administrators group, and then use the runas command to run your script or executable as an administrator. At a command prompt, type runas /profile /User:MyComputer</STRONG>Administrator cmd to open a command window with administrator rights and then type cscript.exe ScriptName (include the script's full path and any parameters).

To start, stop, or pause a Web site using a command-line administration script

  1. From the Start menu, click Run.

  2. In the Open box, type cmd, and click OK.

  3. At the command prompt, type **cscript iisweb.vbs /**action "WebSiteName" and press ENTER. Substitute start, stop, or pause for action. Substitute your actual Web site name (for example "Default Web Site") for WebSiteName.