【已解决】Java Error: Port 9095 was already in use

问题描述

Java Error: Port 9095 was already in use

问题原因

端口被占用导致

解决方案

Windsow系统

  1. netstat -ano|findstr 9090
    查询到占用 9090 端口的进程PID为 9784。
    image
  2. tasklist|findstr 9784
    查询到PID为0=7984的进程
    image
  3. 打开【任务管理器】 -> 【服务】,将对应应用关闭
    image

Linux系统

  1. lsof -i 9090

  2. kill -9 PID

结论验证

pass

posted @ 2023-04-03 12:41  maoxianww  阅读(73)  评论(0编辑  收藏  举报