Install and uninstall Windows Services

Source: Internet
Author: User
Instance: SC create resin2-80 binpath = "D: \ resin2-80 \ bin \ httpd.exe" displayname = "resin2-80" SC create resin2-8088 binpath = "D: \ resin2-8088 \ bin \ httpd.exe "displayname =" resin2-8088 "D: \ resin2-80 \ bin \ httpd.exe D: \ resin2-8088 \ bin \ httpd.exe" D: \ resin2-80 \ bin \ httpd.exe "-service-java_home D: \ Java \ jdk1.6-xmx512m"
"D: \ resin2-8088 \ bin \ httpd.exe"-service-java_home D: \ Java \ jdk1.6-xmx512m "D: \ mysql \ bin> mysqld-Remove
Service successfully removed.
MySQL has several service modes. For more information, see MySQL service information. It's easy to use SC in another way.

C: \ Documents ents and Settings \ zhangxudong> SC Delete MySQL
[SC] deleteservice successful

In addition, I will summarize the recently learned Windows commands (bold and highlighted ):

C: \ Documents and Settings \ zhangxudong> tasklist
// Similar to the PS installation service in Linux
SC create svnservice binpath = "D: \ P \ subversion \ bin \ svnserve.exe -- service-R E: \ repos" displayname = "svnservice" depend = TCPIP
SC config svnservice start = auto Delete Service
SC Delete svnservice modify configuration
SC config svnservice binpath = "D: \ P \ subversion \ bin \ svnserve.exe -- service-R E: \ repos" displayname = "svnservice" depend = TCPIP set to self-start
SC config svnservice start = Auto Start Service
Net start svnservice:
========================================================== ========
Syntax: SC create | Delete | config service name [parameter]
Main Parameter List:
Start = demand | boot | system | auto | disabled | delayed-auto // start Type
Binpath = binarypathname // executable file path
Depend = dependency (separated by/(slash)
Displayname = <display name> // The display name is used to create, remove, and reconfigure services. For example, you can reconfigure the execution path of MySQL as follows:
SC config MySQL binpath = "new path"
========================================================== ==========

This article is from 51cto. com technical blog

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.