无法连接到 Wildfly
Cannot connect to Wildfly
我刚刚安装了 Wildfly
并尝试连接它 :
\wildfly-11.0.0.Final\bin>jboss-cli.bat -c
但给我以下错误:
Failed to connect to the controller: The controller is not available
at localhost:9990: java.net.ConnectException: WFLYPRT0053: Could not
connect to remote+http://localhost:9990. The connection failed:
WFLYPRT0053: Could not connect to remote+http://localhost:9990. The
connection failed: Connection refused: no further information
我尝试了很多解决方案,但都不适合我。
使用 Wildfly 运行,o.r. (standalone.bat),使用 --controller 选项定义它的位置:
jboss-cli.bat -c --controller=localhost:9990
在 wildfly 版本 16 上出现同样的错误
错误
Failed to connect to the controller: The controller is not available at localhost:: java.net.ConnectException: WFLYPRT0053: Could not connect to remote+http://localhost:. The connection failed: WFLYPRT0053: Could not connect to remote+http://localhost:. The connection failed: Connection refused
并成功解决以下问题
步骤 01
评论(或者您可以删除)/bin/jboss-cli.xml
中的以下行
default-protocol use-legacy-override="true">remote+https</default-protocol
正确的协议示例:
<default-protocol use-legacy-override="true">remote+http</default-protocol>
<!-- The default controller to connect to when 'connect' command is executed w/o arguments -->
<default-controller>
<protocol>remote+http</protocol>
<host>localhost</host>
<port>9990</port>
</default-controller>
步骤 02
在我的例子中,我已经创建了一个管理用户,因此,我已经使用以下命令启动了 CLI
./jboss-cli.sh --user="<user>" --password="<password>" --controller=remote+http:<your IP>:<port> --connect
示例:
./jboss-cli.sh --user="Admin" --password="Password" --controller=remote+http://19.199.115.172:9990 --connect
确保你的 wildfly 已经启动并且 运行。如果您为管理控制台使用了不同的端口,则应添加 。
执行此操作时 Jboss 必须是 运行。当我的 jboss 未启动 n 运行 时,我试图执行此操作...然后我收到此错误消息。所以启动 jboss 然后再试一次。
最常见的情况是 jboss-cli.xml 中定义的默认控制器与独立配置的管理端口不匹配。xml/domain.xml。开箱即用,他们应该收敛于 localhost:9990。因此,请验证您是否更改了这两个文件中的任何一个。除此之外,这可能是一个 firewall/network 问题。
我刚刚安装了 Wildfly
并尝试连接它 :
\wildfly-11.0.0.Final\bin>jboss-cli.bat -c
但给我以下错误:
Failed to connect to the controller: The controller is not available at localhost:9990: java.net.ConnectException: WFLYPRT0053: Could not connect to remote+http://localhost:9990. The connection failed: WFLYPRT0053: Could not connect to remote+http://localhost:9990. The connection failed: Connection refused: no further information
我尝试了很多解决方案,但都不适合我。
使用 Wildfly 运行,o.r. (standalone.bat),使用 --controller 选项定义它的位置:
jboss-cli.bat -c --controller=localhost:9990
在 wildfly 版本 16 上出现同样的错误
错误
Failed to connect to the controller: The controller is not available at localhost:: java.net.ConnectException: WFLYPRT0053: Could not connect to remote+http://localhost:. The connection failed: WFLYPRT0053: Could not connect to remote+http://localhost:. The connection failed: Connection refused
并成功解决以下问题
步骤 01
评论(或者您可以删除)/bin/jboss-cli.xml
中的以下行default-protocol use-legacy-override="true">remote+https</default-protocol
正确的协议示例:
<default-protocol use-legacy-override="true">remote+http</default-protocol>
<!-- The default controller to connect to when 'connect' command is executed w/o arguments -->
<default-controller>
<protocol>remote+http</protocol>
<host>localhost</host>
<port>9990</port>
</default-controller>
步骤 02
在我的例子中,我已经创建了一个管理用户,因此,我已经使用以下命令启动了 CLI
./jboss-cli.sh --user="<user>" --password="<password>" --controller=remote+http:<your IP>:<port> --connect
示例:
./jboss-cli.sh --user="Admin" --password="Password" --controller=remote+http://19.199.115.172:9990 --connect
确保你的 wildfly 已经启动并且 运行。如果您为管理控制台使用了不同的端口,则应添加 。
Jboss 必须是 运行。当我的 jboss 未启动 n 运行 时,我试图执行此操作...然后我收到此错误消息。所以启动 jboss 然后再试一次。
最常见的情况是 jboss-cli.xml 中定义的默认控制器与独立配置的管理端口不匹配。xml/domain.xml。开箱即用,他们应该收敛于 localhost:9990。因此,请验证您是否更改了这两个文件中的任何一个。除此之外,这可能是一个 firewall/network 问题。