端口号被占用

报错信息
java.net.BindException: Address already in use: JVM_Bind
Can’t bind to /127.0.0.1:6800.
Check for another server listening to that port.

解决方法:

  1. 用管理员打开cmd
  2. 找到程序直接kill(好粗暴)

idea_java.net.BindException: Address already in use: JVM_Bind

  • netstat -aon|findstr “6800”----------查看这个端口的PID
  • tasklist |findstr “3704”--------------查看程序
  • taskkill /pid 3704-----------------终止程序
  • system32>taskkill /f /pid 3704----------强行终止

注:由于一直无法删除,我打开了任务管理器,对于Java和Javaw都进行了关闭进程操作(爽)

相关文章:

  • 2021-09-21
  • 2021-11-22
  • 2021-11-19
  • 2021-12-10
  • 2022-12-23
  • 2021-06-18
  • 2021-07-18
猜你喜欢
  • 2021-11-05
  • 2021-05-24
  • 2021-06-15
  • 2021-04-07
  • 2021-08-10
相关资源
相似解决方案