gpt4 book ai didi

java - 错误(Wildfly 11 服务器为 389/703

转载 作者:行者123 更新时间:2023-12-02 11:55:30 26 4
gpt4 key购买 nike

当我想启动 Wildfly 服务器时,我在终端/opt/wildfly11/bin$ sudo ./standalone.sh 中写入但之后我遇到了一些错误,如下所示:

=========================================================================

JBoss Bootstrap Environment

JBOSS_HOME: /opt/wildfly11

JAVA: java

JAVA_OPTS: -server -Xms64m -Xmx512m -XX:MetaspaceSize=96M -XX:MaxMetaspaceSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true

=========================================================================

12:45:34,953 INFO [org.jboss.modules] (main) JBoss Modules version 1.6.1.Final WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by org.wildfly.security.manager.GetAccessibleDeclaredFieldAction (jar:file:/opt/wildfly11/modules/system/layers/base/org/wildfly/security/elytron-private/main/wildfly-elytron-1.1.6.Final.jar!/) to field java.security.AccessControlContext.context WARNING: Please consider reporting this to the maintainers of org.wildfly.security.manager.GetAccessibleDeclaredFieldAction WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release

389 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-7) MSC000001: Failed to start service org.wildfly.management.http.extensible: org.jboss.msc.service.StartException in service org.wildfly.management.http.extensible: java.net.BindException: Адресу вже використано /127.0.0.1:9990 at org.jboss.as.server//org.jboss.as.server.mgmt.UndertowHttpManagementService.start(UndertowHttpManagementService.java:340) at org.jboss.msc//org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:2032) at org.jboss.msc//org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1955) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) at java.base/java.lang.Thread.run(Thread.java:844)

12:45:44,***703 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("add") failed - address: ([ ("core-service" => "management"), ("management-interface" => "http-interface") ]) - failure description: {"WFLYCTL0080: Failed services" => {"org.wildfly.management.http.extensible" => "java.net.BindException: Адресу вже використано /127.0.0.1:9990"}} 12:45:44,**715 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("add") failed - address: ([ ("core-service" => "management"), ("management-interface" => "http-interface") ]) - failure description: {"WFLYCTL0080: Failed services" => {"org.wildfly.management.http.extensible" => "java.net.BindException: Адресу вже використано /127.0.0.1:9990"}}***** WildFly Full 11.0.0.Final (WildFly Core 3.0.8.Final) stopped in 32ms

最佳答案

在我看来,您的端口已被其他应用程序使用。 (谷歌翻译:))你可以用命令检查它:

netstat -tulpn | grep :9990

您可以通过设置系统属性来设置端口偏移以进行wildfly:

bin/standalone.sh -Djboss.socket.binding.port-offset=100

但请注意,在以下情况下连接到 CLI 时需要指定端口:

bin/jboss-cli.sh --controller=localhost:10090 -c

在这种情况下,任何其他服务都将使用增加 100 的端口。

关于java - 错误(Wildfly 11 服务器为 389/703,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47632112/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com