码上敲享录 > java常见报错解答 > 解决Caused by: java.net.BindException: Address already in use: bind

解决Caused by: java.net.BindException: Address already in use: bind

上一章章节目录下一章 2018-09-05已有2540人阅读 评论(0)

严重: Failed to initialize end point associated with ProtocolHandler ["http-nio-18080"]

java.net.BindException: Address already in use: bind

at sun.nio.ch.Net.bind0(Native Method)

at sun.nio.ch.Net.bind(Net.java:433)

at sun.nio.ch.Net.bind(Net.java:425)


解决方法:

一般这种错误会出现在tomcat启动的时候,上面错误显示18080端口被占用了。

1.如果是linux系统参考tomcat是否启动了:http://www.yayihouse.com/yayishuwu/chapter/1310

并使用kill -9 14705来释放端口,14705是我的pid,你的可以从上面地址的内容中找到,例如使用ps -ef|grep tomcat看tomcat释放启动时,如果已启动,返回的信息中有pid。

2.如果时windows系统,可以参考:http://yayihouse.com/yayishuwu/chapter/1064


本文链接:http://www.yayihouse.com/yayishuwu/chapter/1569

向大家推荐《Activiti工作流实战教程》:https://xiaozhuanlan.com/activiti
0

有建议,请留言!

  • *您的姓名:

  • *所在城市:

  • *您的联系电话:

    *您的QQ:

  • 咨询问题:

  • 提 交