JAVA-端口被占用:DESCRIPTION: WEB SERVER FAILED TO START. PORT 8877 WAS ALREADY IN USE.

IDEA重启的时候没有关服务,结果跑服务的时候发现端口被占用了

1.首先cmd查询端口的进程

netstat -ano|findstr "8877"

JAVA-端口被占用:DESCRIPTION: WEB SERVER FAILED TO START. PORT 8877 WAS ALREADY IN USE._第1张图片

2.继续查应用

tasklist|findstr "10252"

3.结束进程

taskkill /f /t /im java.exe 

JAVA-端口被占用:DESCRIPTION: WEB SERVER FAILED TO START. PORT 8877 WAS ALREADY IN USE._第2张图片

 

你可能感兴趣的:(JAVA基础,java)