将 JBoss封装为Windows 服务

Download javaService form objectWeb

 

 

Install Service

 

 

set Java_Home=D:\programfiles\java\jdk160_24

set JBOSS_HOME=D:\programfiles\jboss-eap-5.1\jboss-as

 

JavaService.exe -install JBoss5 %Java_Home%\jre\bin\server\jvm.dll -Djava.class.path="%JBOSS_HOME%\bin\run.jar;%JAVA_HOME%\lib\tools.jar" –Xms256M –Xmx512M -start org.jboss.Main -stop org.jboss.Main -method systemExit -out "%JBOSS_HOME%\server\default\log\server.log" -err "%JBOSS_HOME%\server\default\log\boot.log" -current "%JBOSS_HOME%\bin" -overwrite -startup 6 




Uninstall Service

 

JavaService.exe -uninstall JBoss5

 

 

 

 

 

 

你可能感兴趣的:(windows)