JBOSS EAP 6.0+ Standalone模式安装成Windows服务

简介: 网上有一些文章介绍用JavaService.exe来实现,但是到EAP 6以上版本,我试过好象没成功,幸好JBoss官方已经推出了专门的工具。   一、先到官网下载http://www.jboss.

网上有一些文章介绍用JavaService.exe来实现,但是到EAP 6以上版本,我试过好象没成功,幸好JBoss官方已经推出了专门的工具。

 

一、先到官网下载http://www.jboss.org/jbossweb/downloads/jboss-native-2-0-10.html 合适的版本

 

二、将下载到的压缩包,全部解压到%JBOSS_HOME%\bin

 

三、修改service.bat

3.1 下面几项随便填写,是安装后的Windows服务信息

  a)SVCNAME = JBAS50SVC   #这是安装服服务后服务名(我一般习惯改成JBoss)

  b)SVCDISP  =  JBoss Application Server 5.0  #这是服务描述

  c)SVCDESC=JBoss Application Server 5.0.0 GA/Platform: Windows x86   #这是服务简介

 

3.2 修改set JAVA_OPTS 这行,内容参考下面这样:(内存值自己调整一下)

  set JAVA_OPTS=-Xrs -server -Xms256m -Xmx512m -XX:PermSize=512M -XX:MaxNewSize=512m -XX:MaxPermSize=512m

 

3.3 找到所有 call run.bat的地方,改成 call standalone.bat (因为我们是standalone模式)

 

3.4 找到所有 call shutdown 的地方,这是一个很坑爹的地方,如果不改,停止Jboss服务时,将直接关闭Windows系统(血淋淋的教训),改成下面这样:

call jboss-cli.bat --connect --command=:shutdown >> shutdown.log 2>&1

 

三、安装服务

%JBOSS_HOMEM%\bin\service.bat install

如果要卸载,把 install 换成 uninstall 即可

 

四、启用/停止服务

net start JBoss

net stop JBoss

 

附件:http://files.cnblogs.com/yjmyzz/jboss-native-2.0.10-windows-x64-standalone.zip 这是我已经改好的service.bat及相关文件

 

目录
相关文章
|
4天前
|
Linux 虚拟化 Docker
Windows12安装Docker
Windows12安装Docker
24 2
|
1月前
|
Linux Shell Windows
通过Linux挂载Windows端NFS服务实现板端Linux传输文件到PC
通过Linux挂载Windows端NFS服务实现板端Linux传输文件到PC
|
1月前
|
数据安全/隐私保护 虚拟化 Windows
如何在 VM 虚拟机中安装 Windows Server 2012 操作系统保姆级教程(附链接)
如何在 VM 虚拟机中安装 Windows Server 2012 操作系统保姆级教程(附链接)
69 0
|
26天前
|
Shell Windows
Windows服务器 开机自启动服务
Windows服务器 开机自启动服务
14 0
|
21天前
|
安全 Windows
安装MyEclipse遇到错误提示 Failed to find a Main Class in “C:Windows\Temp\“时的解决方案
安装MyEclipse遇到错误提示 Failed to find a Main Class in “C:Windows\Temp\“时的解决方案
22 1
|
3天前
|
网络协议 安全 测试技术
Windows安装禅道系统结合Cpolar实现公网访问内网BUG管理服务
Windows安装禅道系统结合Cpolar实现公网访问内网BUG管理服务
|
1月前
|
Linux 数据安全/隐私保护 Docker
linux和windows中安装emqx消息服务器
linux和windows中安装emqx消息服务器
27 0
|
1月前
|
物联网 Windows
安装windows 10操作系统
安装windows 10操作系统
47 1
|
1月前
|
Windows
windows server 2019 安装NET Framework 3.5失败,提示:“安装一个或多个角色、角色服务或功能失败” 解决方案
windows server 2019 安装NET Framework 3.5失败,提示:“安装一个或多个角色、角色服务或功能失败” 解决方案
100 0
|
1月前
|
应用服务中间件 nginx Windows
windows下快速安装nginx 并配置开机自启动
windows下快速安装nginx 并配置开机自启动
windows下快速安装nginx 并配置开机自启动