美文网首页
windows关闭指定端口进程

windows关闭指定端口进程

作者: onlyHalfSoul | 来源:发表于2018-06-14 21:43 被阅读52次

今天开发测试时发现web项目启动时总是包错如下

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

分析后发现是上次启动时程序未正常退出,导致端口被占用,需要手动关闭端口进程。

查资料后,指令如下:

netstat -aon|findstr "18087"   #查询端口进程PID

taskkill /f /t /im 14964   #杀死指定PID进程
杀死指定端口进程.JPG

之后就正常运行了,解决Windows上端口占用问题。

相关文章

网友评论

      本文标题:windows关闭指定端口进程

      本文链接:https://www.haomeiwen.com/subject/nieueftx.html