无法从windows命令行关闭JBoss AS 7.0.2



大家好,我是JBoss的新手,我正在学习如何编写gradle脚本来自动化JBoss上的部署过程。我读过很多文章,他们都说命令是:

{JBOSS_HOME}/bin/jboss-admin.bat --connect command=:shutdown

但是它总是说控制器不可用,我确定服务器已经启动了:

C:jboss-as-web-7.0.2.Finalbin>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,所以我可以通过什么方式关闭它?由于

根据官方文档,他们在7.0.2中没有提供该功能,但他们已经在以后的版本中添加了该选项。

最新更新