命令行添加windows服务
使用sc.exe进行从命令行添加服务
sc.exe create "<serviceKey>" start= auto binPath= "<path to jenkins-slave.exe>" DisplayName= "<service display name>"
参考:
命令行添加windows服务
使用sc.exe进行从命令行添加服务
sc.exe create "<serviceKey>" start= auto binPath= "<path to jenkins-slave.exe>" DisplayName= "<service display name>"