把jboss安装成windows的服务!
2005-02-07 19:57
519 查看
首先从这里下载javaservice.exe
http://multiplan.co.uk/software/javaservice/downloads.html
installjboss脚本例子中jboss必须依赖于某种(例如mysql)服务,我这里什么都不用依赖所以更改如下:
intallboss.bat
@echo off
if "%1" == "" goto err
if "%2" == "" goto err
if "%3" == "" goto err
if "%4" == "" goto err
goto ok
:err
echo --------
echo Usage:
echo %0 jdk_home jboss_home (classic/hotspot/server) other_service [-auto / -manual]
echo NOTE: You MAY NOT use spaces in the path names (tell me if you can fix this).
echo JDK 1.3 does not come with hotpot server by default, you must
echo install this separately if you wish to use it.
echo Example: %0 c:/jdk1.3.1_04 c:/jboss hotspot mysql -auto
echo --------
goto eof
:ok
@echo .
@echo .
@echo .
copy JavaService.exe %2/bin/JBossService.exe > nul
%2/bin/JBossService.exe -install JBoss %1/jre/bin/%3/jvm.dll -Djava.class.path=%1/lib/tools.jar;%2/bin/run.jar -start org.jboss.Main -stop org.jboss.Main -method systemExit -out %2/bin/out.log -err %2/bin/err.log -current %2/bin %4
goto eof
:eof
@echo .
@echo .
@echo .
然后在命令行下运行命令安装:
installjboss -java_home_path -jboss_home_path server -auto
java_home_path是你的jdk路径
jboss_home_path是你的jbosshome路径
提示安装成功
用net start jboss试一下,成功!
卸载用这个命令javaservice -uninstall jboss
RJ-LXH(原创)
http://multiplan.co.uk/software/javaservice/downloads.html
installjboss脚本例子中jboss必须依赖于某种(例如mysql)服务,我这里什么都不用依赖所以更改如下:
intallboss.bat
@echo off
if "%1" == "" goto err
if "%2" == "" goto err
if "%3" == "" goto err
if "%4" == "" goto err
goto ok
:err
echo --------
echo Usage:
echo %0 jdk_home jboss_home (classic/hotspot/server) other_service [-auto / -manual]
echo NOTE: You MAY NOT use spaces in the path names (tell me if you can fix this).
echo JDK 1.3 does not come with hotpot server by default, you must
echo install this separately if you wish to use it.
echo Example: %0 c:/jdk1.3.1_04 c:/jboss hotspot mysql -auto
echo --------
goto eof
:ok
@echo .
@echo .
@echo .
copy JavaService.exe %2/bin/JBossService.exe > nul
%2/bin/JBossService.exe -install JBoss %1/jre/bin/%3/jvm.dll -Djava.class.path=%1/lib/tools.jar;%2/bin/run.jar -start org.jboss.Main -stop org.jboss.Main -method systemExit -out %2/bin/out.log -err %2/bin/err.log -current %2/bin %4
goto eof
:eof
@echo .
@echo .
@echo .
然后在命令行下运行命令安装:
installjboss -java_home_path -jboss_home_path server -auto
java_home_path是你的jdk路径
jboss_home_path是你的jbosshome路径
提示安装成功
用net start jboss试一下,成功!
卸载用这个命令javaservice -uninstall jboss
RJ-LXH(原创)
相关文章推荐
- Jboss3.0-tomcat4.03的配置--安装和Windows服务的安装
- 把jboss安装成windows的服务!
- 如何在windows NT 下安装jboss为服务?(How to install jboss as Windows NT OS Service?)
- Jboss3.0-tomcat4.03的配置--安装和Windows服务的安装
- 使用javaService将jboss安装成windows的服务
- Jboss3.0-tomcat4.03的配置--安装和Windows服务的安装
- 如何在将Jboss 安装为Windows 服务时设定系统参数(jboss5和jboss6下必须这么做才能将jboss安装为Windows 系统服务)
- 如何在将Jboss 安装为Windows 服务时设定系统参数
- 在 Windows 系统中安装 SSH 服务
- windows下SVN服务的安装与配置
- windows下JBOSS的安装配置说明
- MongoDB安装成windows 服务
- 安装OFFICE提示“windows installer服务不能更新一个或多个受保护的windows文件”解决办法
- windows下oracle安装,em服务启动不了。
- C#对Windows服务操作(注册安装服务,卸载服务,启动停止服务,判断服务存在)
- windows服务,安装、启动、停止,配置,一个批处理文件搞定
- Windows 平台下安装Cygwin后,sshd服务无法启动
- 如何将weblogic安装为windows的系统服务自动启动
- 安装openssh for windows 3.8.1后,尝试启动opensshd服务,net start opensshd,失败
- .net Windows服务程序和安装程序制作图解 及 VS 2010创建、安装、调试 windows服务(windows service)