如何shutdown JBoss AS 7 server
来源:互联网 发布:路旁的叶修写真集淘宝 编辑:程序博客网 时间:2024/06/06 04:47
在上一篇安装启动JBoss的博客http://blog.csdn.net/huluedeai/article/details/50639149中,发现启动jboss后并不是在后台运行 (windows),所以当你想要关闭jboss服务的时候,必须要CTRL+C 或单独打开一个再开一个cmd窗口,进入Jboss的bin目录,运行
Jboss-cli.bat --connect command=:shutdown
在解决这个问题时大多说看到的都是要用到jboss-admin.sh ,但是在jboss-as.7.1.0.Final中没有jboss-admin.sh(bat)文件。 在stackoverflow上看到了很好解释。http://stackoverflow.com/questions/9327233/how-do-i-shutdown-jboss-as-7-server
How do I shutdown JBoss AS 7 server?
I recently updated from jboss-as.7.1.0.CR1b
to jboss-as.7.1.0.Final
and want to shutdown running instance from the console. In previous versions the command
$JBOSS_HOME/bin/jboss-admin.sh --connect command=:shutdown
was available, but I do not see jboss-admin.sh
in the bin directory or other shell scripts for shutting down the server.
4 Answers
For some reason the JBoss team decided to reorganize the scripts between minor revision upgrades. In any case, jboss-cli.sh is the replacement for jboss-admin.sh (they are for all intents and purposes the exact same script). So your new shutdown command is:
./jboss-cli.sh --connect command=:shutdown
For standalone mode,
./jboss-cli.sh --connect command=:shutdown
For domain mode, hostname should be specified like this:
./jboss-cli.sh --connect /host=master:shutdown
'master' is the default hostname. The server hostname could be found in $JBOSS_HOME/domain/configuration/host.xml
If your server has the controller listening in a different URL than localhost:
${JBOSS_HOME}/bin/jboss-cli.sh --connect --controller=<host>:<port> command=:shutdown
Only for your information. ;)
In Windows ......jboss-eap-6.1\bin\jboss-cli.bat Double click or run by cmd prompt.
- 如何shutdown JBoss AS 7 server
- Jboss as 7配置xa的datasource(Sql server)
- JBoss AS 7 中如何配置多个二级域名
- JBoss AS 7 虚拟主机配置
- JBoss AS 7 命令简介
- JBOSS AS 7日志调整
- JBoss AS 7 classloading explained
- 【译文-JBoss】Why JBoss AS 7 is so fast
- JBOSS AS 7设置虚拟目录位置
- 使用jboss as 7 final布署项目
- JBoss AS 7性能调优 (一)
- JBoss AS 7 的应用服务特性
- 开启JBoss as 7的access_log功能
- JBOSS AS 7设置虚拟目录位置
- How to install JBoss AS 7 as a Linux service
- 如何在JBOSS Server上发布EJB
- 如何在JBOSS Server上发布EJB
- JBoss AS 4.2发布
- 用户爬虫例子
- 爬虫基本知识
- 电脑如何连接万能钥匙解开的WiFi
- mysql_real_escape_string总是返回false
- cf#AIM Tech D. Array GCD (数学+枚举)
- 如何shutdown JBoss AS 7 server
- 使用putty在linux主机和windows主机之间拷贝文件(已测试可执行)
- [hdu4453]looploop [treap/splay]
- jQuery4(Dom与jQuery对象的相互转换)
- uva796 Critical Links(求桥并按边输出)
- Spark RunTime内幕解密
- 蓝桥杯 历届试题 地宫取宝
- WD西部数据移动硬盘官方真伪查询
- Ubuntu15.10 使用wine安装并运行qq