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