当我无法访问CLI工具时,如何关闭JBoss Wildfly?

栏目: Java · 发布时间: 7年前

内容简介:翻译自:https://stackoverflow.com/questions/34053244/how-do-i-shutdown-jboss-wildfly-when-i-cant-access-the-cli-tool
我使用Wildfly 10.0.0.CR2和 Java

8.我让Wildfly在端口8080上侦听http连接,并且过去使用此命令关闭服务器…

./jboss-cli.sh --connect command=:shutdown

有时,即使服务器仍在运行,我也无法访问此工具.请注意我的Mac下面的交互…

Daves-MacBook-Pro-2:bin davea$./jboss-cli.sh --connect command=:shutdown
Failed to connect to the controller: The controller is not available at localhost:9990: java.net.ConnectException: WFLYPRT0023: Could not connect to http-remoting://localhost:9990. The connection timed out: WFLYPRT0023: Could not connect to http-remoting://localhost:9990. The connection timed out
Daves-MacBook-Pro-2:bin davea$telnet localhost 8080
Trying ::1...
telnet: connect to address ::1: Connection refused
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.

我的问题是,什么是关闭JBoss服务器的万无一失的方法?注意我更喜欢不依赖于CLI工具的方法.

我怀疑它有时无法连接,因为我可以在telnet上看到localhost首先解析为ipv6.你有没有尝试过:

./bin/jboss-cli.sh --connect controller=127.0.0.1:9990 command=:shutdown

除此之外你总是可以杀死PID:

pgrep -d" " -f "wildfly" | xargs kill;

翻译自:https://stackoverflow.com/questions/34053244/how-do-i-shutdown-jboss-wildfly-when-i-cant-access-the-cli-tool


以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

Head First PHP & MySQL(中文版)

Head First PHP & MySQL(中文版)

Lynn Beighley、Michael Morrison / 苏金国、徐阳 / 中国电力 / 2010-6 / 98.00元

通过《深入浅出PHP&MySQL(影印版)》,你将学习:准备好把你的静态HTML网页提升到下一个层次并使用PHP和MySQL建立数据库驱动的网站了吗?《深入浅出PHP& MysQL》是一本快捷实用的指南,让你的动态网站快速运行。自己动手建立实际应用程序,从视频游戏高分留言板到在线交友网站。当你完成后,你将可以进行验证表单、使用会话ID和cookies工作、执行数据库查询和联接、处理文件I/0操作等......一起来看看 《Head First PHP & MySQL(中文版)》 这本书的介绍吧!

Base64 编码/解码
Base64 编码/解码

Base64 编码/解码

SHA 加密
SHA 加密

SHA 加密工具