Maven之Failure: Address already in use: bind-yellowcong

启动Jetty的时候,发现报错Failure: Address already in use: bind,简单来说,就是端口占用了,我们需要查看是哪个玩意在占用端口,一般情况下是javaw.exe,可以直接执行taskkill /f /t /im javaw.exetaskkill /f /t /im java.exe就可以杀死进程,释放端口了,如果上一个方法还不奏效,需要查看具体是那一个占用了

出现的错误

当发现出现端口占用的情况的时候,先看看自己的eclipse控制台,看看是不是重复启动了,如果不是,就需要查找端口,关闭8080端口占用的程序

[ERROR] Failed to execute goal org.eclipse.jetty:jetty-maven-plugin:9.4.6.v20170531:run (default-cli) on project demo: Failure: Address already in use: bind -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

解决办法

1、netstat -ano,列出所有端口的情况

这里写图片描述

2、查看被占用端口对应的程序,我查的是8080端口,那个pid是哪个程序占用了,tasklist|findstr “24072”

这里写图片描述

3、关闭这个程序,我们看到了,这个占用的程序是 javaw.exe,需要关闭他taskkill /f /t /im javaw.exe

这里写图片描述

4、再次启动服务器
端口绑定成功

这里写图片描述

转载于:https://my.oschina.net/u/1987703/blog/1617644

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值