" java.net.BindException:已在使用的地址:JVM_Bind"当我在日食火星上开始Jetty时 [英] "java.net.BindException: Address already in use: JVM_Bind" when I start Jetty in eclipse mars

查看:163
本文介绍了" java.net.BindException:已在使用的地址:JVM_Bind"当我在日食火星上开始Jetty时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

失败:构建因异常而失败。

FAILURE: Build failed with an exception.


  • 出了什么问题:
    任务执行失败': project-web:jettyRun'。

  • What went wrong: Execution failed for task ':project-web:jettyRun'.


java.util.concurrent.ExecutionException:java.net.BindException:Address alrea
dy使用中:JVM_Bind

java.util.concurrent.ExecutionException: java.net.BindException: Address alrea dy in use: JVM_Bind


  • 尝试:
    使用--stacktrace选项运行以获取堆栈跟踪。使用--info或--debug
    选项运行以获得更多日志输出。

  • Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

    BUILD FAILED

    BUILD FAILED

    推荐答案


    警告:oejuc.AbstractLifeCycle:FAILED
    SelectChannelConnector@0.0.0.0:8080 FAILED :java.net.BindException:
    已经在使用的地址

    WARN:oejuc.AbstractLifeCycle:FAILED SelectChannelConnector@0.0.0.0:8080 FAILED: java.net.BindException: Address already in use

    我遇到了同样的问题。在我的情况下,我试图在Windows 8上运行jetty服务器。当我执行mvn jetty:运行命令在端口号8080上有错误。我的端口没有8080运行恶意软件(sysnetwk.exe)后我杀了进程(sysnetwk。 exe)在8080 jetty服务器上运行启动。现在工作正常
    如果有人遇到这个问题他们可以按照以下步骤进行操作

    I had the same problem. In my case i tried to run jetty server on windows 8. When i execute mvn jetty:run command had the error on port number 8080. My port no 8080 was running by malware(sysnetwk.exe) after i killed the process(sysnetwk.exe) running on 8080 jetty server started. it works fine now If anyone has this problem they can follow below steps


    1. 你需要找到正在运行的进程在端口号(在我的情况下,端口号8080)

    1. you need to find which process running on port no (in my case port no 8080)

    c:\ Windows \ system32> netstat -ano | findstr 8080

    c:\ Windows\system32>netstat -ano | findstr 8080

    TCP 0.0.0.0:8080 LISTENING 6772

    TCP 0.0.0.0:8080 LISTENING 6772

    使用PID终止进程

    c:\ Windows \system32> taskkill / F / pid 6772

    c:\ Windows\system32>taskkill /F /pid 6772

    成功:流程终止。

    如果你无法使用cmd提示终止进程,那么你可以使用任务管理器( ctrl + shift + esc )杀死进程

    If you can't kill the process using cmd prompt then you can use task manager(ctrl+shift+esc) to kill the process

    这篇关于" java.net.BindException:已在使用的地址:JVM_Bind"当我在日食火星上开始Jetty时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

  • 查看全文
    相关文章
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆