《创设.删除、启动和停止 Windows Service》

《创建.删除、启动和停止 Windows Service》创建服务: sc create Jboss? binPath C:\jboss\jbossService.

《创建.删除、启动和停止 Windows Service》

创建服务: sc create "Jboss"? binPath= "C:\jboss\jbossService.exe" displayName= "Jboss"

?

删除服务: sc delete "Jboss"

?

net start <servicename>

?

net stop <servicename>