In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly explains "what is Windows service". Interested friends may wish to have a look at it. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn what Windows service is.
Before C#Windows service program development, we should understand what is Windows service. Windows Service, also known as Windows service, is a long-running daemon in 32-bit Windows operating system. They run in the background for a long time, have no user interface and are unknown, but they are the behind-the-scenes heroes who support the normal operation of Windows, but they will never rise to the fore.
Windows service program development provides very important services for other system modules, and each Windows service has a clear division of labor. For example, IISAdmin service provides the publishing function of WEB content. If the IISAdmin service is not started, static HTML pages, ASP, ASP.NET or WebService will not work. There is a service called "Print Spooler" to provide printing support. If the service is not started, no software can print, such as Word, notepad or reporting software.
What Windows service program development needs to know: after Windows starts, the Windows service starts when no user logs in. Windows NT and Windows2000, as well as newer versions of the operating system can run Windows services, but Windows98 and its previous versions cannot run services.
We open Windows Explorer and select Desktop-Control Panel-Administrative tools in the tree list on the left.
Open the Services project in the list on the right to open the Windows Service Manager.
Among these services, we are most familiar with IIS Admin and World Wide Web Publishing services. We double-click a service item to open the service properties dialog box.
What Windows service program development needs to understand: the Windows service has a service name attribute, which is the only non-repeatable name of the service. We can use the command "net start service name" on the command line to start the service and use "net stop service name" to stop the service.
What Windows service program development needs to understand: the startup types of Windows services are automatic, manual, and disabled. When the startup type is automatic, the Windows starts the service automatically without the user logging in. When the startup type is manual, you need an operator to log in and click the "start" button here to start the service. When the startup type is disabled, the Windows service cannot be started.
The "start" button on this page is used to start the Windows service that has not been started and run the process providing the service; the "stop" button is used to stop the started service and kill the service process; the "pause" button is used to notify the service process to stop providing the service temporarily, but the service process still exists; and the "resume" button is used to notify the service process in paused mode to reprovide the service.
We can view the login page of the service properties dialog box.
You can specify that the service logs in with a local system account, or you can specify another user. There is an option that allows the service to interact with the desktop. If this option is selected, the Windows service can display a graphical user interface, such as displaying its own form, displaying message boxes, and so on. However, this option is not recommended, and the Windows service runtime does not display a graphical user interface.
When we switch to the Dependencies page, we can see the dependencies between this service and other services.
There may be dependencies between various Windows services. For example, an IISADMIN service depends on another Windows service called RPC. When a Windows service is started, the system starts other Windows services that the service depends on. For example, if we set the IISADMIN service to start automatically and the RPC service to start manually, then Windows will attempt to start the IISADMIN service automatically after startup, and the RPC service will be started first, even if the RPC service is not started automatically. If the RPC service is disabled and cannot be started anyway, the IISADMIN service cannot be started automatically.
At this point, I believe you have a deeper understanding of "what Windows service is", might as well come to the actual operation of it! Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.