- 如下图,在我们启动java后台时,出现如下错误提示:
Description: Web server failed to start. Port 8080 was already in use. Action: Identify and stop the process that's listening on port 8080 or configure this application to listen on another port.
- 是端口号被占用的原因,解决方式:关闭端口号。操作如下:
1.右键window图标,管理员启动命令窗口:
2.输入如下系列代码
PS C:WINDOWSsystem32> netstat -ano|findstr 8080 TCP 0.0.0.0:8080 0.0.0.0:0 LISTENING 8748 PS C:WINDOWSsystem32> tasklist |findstr 8748 ApplicationWebServer.exe 8748 Services 0 2,772 K PS C:WINDOWSsystem32> taskkill /pid 8748 /F 成功: 已终止 PID 为 8748 的进程。 PS C:WINDOWSsystem32>
OK。。再次启动java后台。
如果是其他的后台端口号被占用亦然,上述代码中替换端口号即可。



