Starting and stopping Services (IIS 6.0)

Source: Internet
Author: User
Tags nntp microsoft iis metabase
Document directory
  • To restart IIS using IIS Manager
  • To restart IIS using the iisreset command-line utility
  • To disable restart of IIS Admin Service
  • To disable restart of IIS Admin Service from the command line
  • To disable restart of the WWW Service
  • Related information
Restarting IIS (Microsoft IIS 6.0)

Http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/95826e7a-bac4-4e1f-bcb6-c52d49c9d7f4.mspx? MFR = true

You might need to restart Internet Information Services (IIS) before certain configuration changes take effect or when applications become unavailable. restarting IIS is the same as first stopping IIS, and then starting it again, doesn t it is accomplished with a single command. there are two ways to restart IIS:

Using IIS manager.

UsingIisresetCommand-line utility.

Both methods allow you to stop, start, and restart IIS Internet services.Restart IISCommand in IIS manager andIisresetCommand-line utility do not restart the HTTP protocol stack (HTTP. sys) or Internet services outside of IIS. In previous versions of IIS, Restarting IIS usingIisresetCommand-line utility was a common practice for recovering from an unresponsive application.

Restarting or stopping IIS, or rebooting your web server, is a severe action. when you restart the Internet Service, all sessions connected to your web server (including Internet, FTP, SMTP, and NNTP) are dropped. any data held in Web applications is lost. all Internet sites are unavailable until Internet services are restarted. for this reason, you shoshould avoid restarting, stopping, or rebooting your server if at all possible. IIS 6.0 when des application pool retries ing and several other features that provide alternatives to Restarting IIS. for a list of features designed to improve IIS reliability and remedy the need to restart IIS, see "alternatives to Restarting IIS" in this topic.

Note

Changes to the metabase can be lost when Restarting IIS. to avoid losing metabase changes and to trigger history files that back up the metabase, use the savedata method. for more information about the savedata method, see "savedata" in the Platform SDK on msdn.

With IIS 6.0, the World Wide Web Publishing Service (WWW Service) lives in the service host, svchost.exe. the FTP, nntp, and SMTP services and the IIS metabase, known as the IIS Admin Service, lives in inetinfo.exe. if the IIS Admin Service terminates abnormally, IIS restarts automatically. this feature is known as automatic restart. previusly, in IIS 5.0, if the IIS Admin Service terminated abnormally, both the WWW Service and IIS Admin Service had to be restarted because they shared the same application space. in IIS 6.0, if the IIS Admin Service terminates abnormally, the WWW Service does not go down because the IIS Admin Service and the WWW Service run in separate process spaces. in this case, the WWW Service acknowledges that the metabase has terminated abnormally and checks to see ifIisresetCommand-line utility is configured on the IIS Admin Service. IfIisresetIs configured on the IIS Admin Service, IIS waits for the IIS Admin Service to start again and reconnects the WWW Service.

All of the Internet services listed below, if installed, are affected when you restart IIS. Not all of the services listed below are installed by default.

Service Description

IIS Admin Service

This Service manages all the services of IIS other than the WWW Service (FTP, nmtp, and SMTP ).

WWW Service

This service provides Web connectivity between clients and web sites.

Http ssl Service

This service provides Secure Web connectivity between clients and web sites.

FTP service

This service provides FTP connectivity and administration through IIS manager.

SMTP Service

This service Transports electronic mail hosts ss the network.

NNTP service

This service transports Network News exceeds ss the network.

 

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 useRunAsCommand to run IIS manager as an administrator. At a command prompt, typeRunAs/User:Administrative_accountname"MMC % SystemRoot % \ system32 \ inetsrv \ IIS. msc".

Proceduresto restart IIS using IIS Manager

1.

In IIS manager, right click the Local Computer, pointAll tasks, Then clickRestart IIS.

2.

InWhat do you want IIS to doList, clickReSTART Internet services onComputername.

3.

IIS attempts to stop all services before restarting. IIS waits up to five minutes for all services to stop. if the services cannot be stopped within five minutes, all IIS services are terminated, and IIS restarts. in addition, clickingEnd nowForces all IIS services to stop immediately, and IIS is restarted.

Caution

If IIS is terminated before its services have stopped normally, data loss can result. if possible, back up your IIS configuration before Restarting IIS. see backing up and restoring the metabase for information on backing up your IIS configuration.

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 useRunAsCommand to run your script or executable as an administrator. At a command prompt, typeRunAs/profile/User:Mycomputer\ Administrator cmdTo open a command window with administrator rights and then typeCscript.exeScriptname(Include the script's full path and any parameters ).

To restart IIS using the iisreset command-line utility

1.

FromStartMenu, clickRun.

2.

InOpenBox, typeCMD, And clickOK.

3.

At the command prompt, typeIisreset/noforceComputername, And press Enter.

4.

IIS attempts to stop all services before restarting.IisresetCommand-line utility waits up to one minute for all services to stop. If the services cannot be stopped within one minute, all IIS services are terminated, and IIS restarts.

Note

You can adjust the timeout value usingIisreset/timeoutCommand.

The iisreset command-line utility has several options available. For more information on the options available withIisresetCommand-line utility, open a command-Prompt window, and typeIisreset /?You can also search for "iisreset" in Windows Help.

Top of page

Automatic Restart

Automatic Restart is enabled by default for the IIS Admin Service and WWW Service. If a process within either service terminates abnormally, the service restarts automatically. The www service restarts usingNet startCommand. the IIS Admin Service restarts usingIisresetCommand. These commands are issued internally without user intervention. You can disable automatic restart using the following procedures.

To disable restart of IIS Admin Service

1.

FromStartMenu, right-clickMy computer, And clickManage.

2.

In the console tree, expandServices and ApplicationsNode, and clickServices.

3.

Right-clickIIS Admin Service, And clickProperties.

4.

ClickRecoveryTab, and inFirst failure,Second failure, AndSubsequent failuresList boxes, clickTake no action.

5.

ClickOK.

The following command can only be issued on the local machine.

To disable restart of IIS Admin Service from the command line

1.

FromStartMenu, clickRun.

2.

InOpenBox, typeCMD, And clickOK.

3.

At a command prompt, typeIisreset/disable, And press Enter. This command disables IIS and prevents allIisresetCallfrom executing.

Note

To re-enable the IIS Admin Service, at the command prompt, typeIisreset/enable, And press Enter.

To disable restart of the WWW Service

1.

FromStartMenu, right-clickMy computer, And clickManage.

2.

In the console tree, expandServices and ApplicationsNode, and clickServices.

3.

Right-clickWorld Wide Web Publishing Service, And clickProperties.

4.

ClickRecoveryTab, and inFirst failure,Second failure, AndSubsequent failuresList boxes, clickTake no action.

5.

ClickOK.

Top of page

Alternatives to Restarting IIS

If you have to restart IIS often because of a faulty application, consider debugging or rewriting the application. to ensure that your applications do not interfere with other services and cause the need to restart IIS, it is recommended that you enable the following:

Worker Process Isolation Mode in IIS 6.0: Worker Process isolation mode is the default service mode in IIS. worker Process isolation mode delivers all the benefits of IIS 6.0 New Architecture: robust application pooling, automatic restarts, scalability, debugging, and precise performance tuning.

Reconfiguring worker processes with IIS 6.0: In Worker Process Isolation Mode, IIS can be configured to periodically restart worker processes in an application pool, allowing you to manage precisely those worker processes that are faulty.

Refreshing ing rapid-fail protection in IIS 6.0: Worker Process isolation mode can be configured so that if a special application pool experiences consecutive multiple failures, the application can be automatically disabled, allowing for rapid-fail protection.

Enabling CPU monitoring in IIS 6.0: CPU monitoring is a tool for monitoring and automatically shutting down worker processes that consume large amounts of CPU time.

Related information

For more information about improving the performance of IIS network resources using related features like bandwidth throttling, HTTP compression, and connection limits, see administering network resources.

For more information about processing ing IIS to run web applications and how to deal with reliability issues caused by web applications, see processing ing servers for applications.

For information on starting and stopping individual web and FTP sites, see starting and stopping Web sites.

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.