JBoss CLI连接到错误的端口,即使指定的端口正确

JBoss CLI连接到错误的端口,即使指定的端口正确,jboss,command-line-interface,wildfly,Jboss,Command Line Interface,Wildfly,我正在使用JBoss7.0.9版 当我启动它时,它会将这一行写入控制台: <date> <loginfo> WFLYSRV0051: <german description that says, that this is the admin console>: http://127.0.0.1:9995 或 两个都抛出了以下命令 Failed to connect to the controller: The controller is not availa

我正在使用JBoss7.0.9版

当我启动它时,它会将这一行写入控制台:

<date> <loginfo> WFLYSRV0051: <german description that says, that this is the admin console>: http://127.0.0.1:9995

两个都抛出了以下命令

Failed to connect to the controller: The controller is not available at localhost:9990: java.net.ConnectException: WFLYPRT0053: Konnte keine Verbindung mit http-remoting://localhost:9990 herstellen. Die Verbindung ist fehlgeschlagen: WFLYPRT0053: Konnte keine Verbindung mit http-remoting://localhost:9990 herstellen. Die Verbindung ist fehlgeschlagen: Connection refused: no further information
正如您所看到的,它试图连接到
localhost:9990
,尽管我说控制器是
localhost:9995

为什么会这样?

这应该是一个等于(
=
)的符号,而不是冒号(
)来分配命令行参数:

 jboss-cli.bat --connect --controller=localhost:9995
 #                                    ^
 #                                    Here
Failed to connect to the controller: The controller is not available at localhost:9990: java.net.ConnectException: WFLYPRT0053: Konnte keine Verbindung mit http-remoting://localhost:9990 herstellen. Die Verbindung ist fehlgeschlagen: WFLYPRT0053: Konnte keine Verbindung mit http-remoting://localhost:9990 herstellen. Die Verbindung ist fehlgeschlagen: Connection refused: no further information
 jboss-cli.bat --connect --controller=localhost:9995
 #                                    ^
 #                                    Here