IDEA错误:Failed to start end point associated with ProtocolHandler [http-nio-9999] java.net.BindException: Address already in use: bind

日志显示进程端口已被占用,首先需要的是查询什么进程占用了当前的9999端口。

 

1、win+R输入cmd进入命令界面:

《IDEA错误:Failed to start end point associated with ProtocolHandler [http-nio-9999] java.net.BindException: Address already in use: bind》

 

2、输入命令  netstat -ano|findstr “端口号”   输入前半部分圈起来的命令是显示所有的进程和端口号

显示的结果最后的6184就是任务管理器里面的PID(标识)

《IDEA错误:Failed to start end point associated with ProtocolHandler [http-nio-9999] java.net.BindException: Address already in use: bind》

 

 3、之后根据PID标识找到进程,输入命令   tasklist|findstr “PID标识”

《IDEA错误:Failed to start end point associated with ProtocolHandler [http-nio-9999] java.net.BindException: Address already in use: bind》

4、最后在任务管理器杀掉进程就行了。

 

注:如果cmd找不到此命令,配置环境变量,在path的最前面加上命令的路径  %SystemRoot%\system32;C:

《IDEA错误:Failed to start end point associated with ProtocolHandler [http-nio-9999] java.net.BindException: Address already in use: bind》

 

最终!我发现我出现这个错误是用了蓝叠安卓模拟器占用了该端口~~

    原文作者:sunwengang
    原文地址: https://www.cnblogs.com/1996swg/p/9140283.html
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞