无法在 Windows 上停止 WildFly 8.2 服务

问题描述 投票:0回答:1

详情

Windows 7 ultimate 32 bit
Java 7
Wildfly 8.2

我已经使用下面的cmd成功安装了WildFly作为服务

service.bat install /controller ip:9990 /user wildfly /password wildfly

但是当我试图用下面的命令停止时

service.bat stop /controller ip:9990 /user wildfly /password wildfly
service.bat stop
service.bat stop  /user wildfly /password wildfly

我已尝试从 service.bat 中删除“CREDENTIALS”,如此处所述https://issues.jboss.org/browse/WFLY-3149https://developer.jboss.org/thread/238135 即使我已经在jboss-cli.bat中设置了JAVA_HOME。

但是它不起作用。

我在 service.log

中不断遇到异常
[2015-07-04 13:50:12] [error] [  192] Failed to stop 'WildflyS' service
[2015-07-04 13:50:12] [error] [  192] The service cannot accept control messages at this time.
[2015-07-04 13:50:12] [info]  [  192] Stop service finished.
[2015-07-04 13:50:12] [error] [  192] Commons Daemon procrun failed with exit value: 6 (Failed to stop service)
[2015-07-04 13:50:12] [error] [  192] The service cannot accept control messages at this time.

wildflys-stderr.log

The service cannot accept control messages at this time.

Failed to stop servicewildflys-stderr.2015-07-04
jboss jboss7.x wildfly wildfly-8
1个回答
0
投票

在“wildfly in\service\service.bat”内,我将第 178 行更改为: 设置 STOPPARAM="/c" 设置 NOPAUSE=Y ^^^&^^^& jboss-cli.bat --controller=%CONTROLLER% --connect %CREDENTIALS% --command=:shutdown""

致: 设置 STOPPARAM="/c jboss-cli.bat --connect --controller=%CONTROLLER% --command=:shutdown"

现在它可以作为 Windows 服务停止/启动/重新启动。

© www.soinside.com 2019 - 2024. All rights reserved.