【发布时间】:2014-07-09 21:34:27
【问题描述】:
大家好,我是 JBoss 的新手,我正在学习如何编写一个 gradle 脚本来自动化 JBoss 上的部署过程。我读过很多文章,他们都说命令是:
{JBOSS_HOME}/bin/jboss-admin.bat --connect command=:shutdown
但它总是说控制器不可用,我确定服务器已经启动:
C:\jboss-as-web-7.0.2.Final\bin>jboss-admin.bat --connect command=:shutdown
Authenticating against security realm: 127.0.0.1
The controller is not available at localhost:9999
You are disconnected at the moment. Type 'connect' to connect to the server or '
help' for the list of supported commands.
Press any key to continue . . .
我知道我在安装后更改了属性文件,现在 admin CLI 需要凭据,但我找不到将用户名和密码与 admin.bat 一起传递的方法,那么我可以通过什么方式将其关闭?谢谢
【问题讨论】:
-
该链接对您有帮助吗:middlewaremagic.com/jboss/?p=419?
-
@Opal 谢谢它非常全面,但它仍然没有告诉我如何从 windows 命令行将用户名和密码传递给 admin.bat。
-
你读过剧本吗?如果您通过
--connect,则可能还定义了其他选项。你试过--username和--password吗?不知道,只是猜测。 -
@Opal 我已经尝试过了,但没有运气。我从 JBoss 社区找到了一个ticket,你认为他们是说在 7.0.2 上不可能做到这一点吗?
标签: windows jboss gradle jboss7.x