sc命令行添加windows服务

来源:互联网 发布:酷派大神f2网络切换 编辑:程序博客网 时间:2024/06/04 19:52

命令行添加windows服务

使用sc.exe进行从命令行添加服务


sc.exe create "<serviceKey>" start= auto binPath= "<path to jenkins-slave.exe>" DisplayName= "<service display name>"

参考:

http://support.microsoft.com/kb/251192

https://wiki.jenkins-ci.org/display/JENKINS/Installing+Jenkins+as+a+Windows+service#InstallingJenkinsasaWindowsservice-InstallSlaveasaWindowsservice%28cmdversion%29

http://support.microsoft.com/kb/137890

0 0
原创粉丝点击