我在Mac Yosemite上使用JBoss wildfly 10.0.0.CR2.我正在寻找一种简单的杀死JBoss的方法,并建议这个命令
pgrep -d" " -f "wildfly" | xargs kill;
所以我运行这个命令,然后进入我的$ JBOSS_HOME/bin目录并运行"sh standalone.sh"并获得令人失望的输出......
Daves-MacBook-Pro-2:bin davea$ sh standalone.sh ========================================================================= JBoss Bootstrap Environment JBOSS_HOME: /opt/wildfly-10.0.0.CR2 JAVA: java JAVA_OPTS: -server -Xms64m -Xmx512m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n ========================================================================= ERROR: transport error 202: bind failed: Address already in use ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510) JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized [debugInit.c:750] FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197) standalone.sh: line 302: 3096 Abort trap: 6 "java" -D"[Standalone]" -server -Xms64m -Xmx512m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n "-Dorg.jboss.boot.log.file=/opt/wildfly-10.0.0.CR2/standalone/log/server.log" "-Dlogging.configuration=file:/opt/wildfly-10.0.0.CR2/standalone/configuration/logging.properties" -jar "/opt/wildfly-10.0.0.CR2/jboss-modules.jar" -mp "/opt/wildfly-10.0.0.CR2/modules" org.jboss.as.standalone -Djboss.home.dir="/opt/wildfly-10.0.0.CR2" -Djboss.server.base.dir="/opt/wildfly-10.0.0.CR2/standalone"
有谁知道一劳永逸地杀死JBoss的万无一失的方法?
不记得是谁提供了这个答案,但这是如何消除WIldfly进程的方法
pgrep -d" " -f "wildfly" | xargs kill -9;