日常笔记--端口被占用

171 阅读1分钟

描述

Description:

Web server failed to start. Port 8002 was already in use.

Action:

Identify and stop the process that's listening on port 8002 or configure this application to listen on another port.

解决办法

cmd后,输入

netstat -ano |findstr 被占用的端口

netstat -ano |findstr 8002

image-20211123202814423

查看进程号,然后输入

taskkill -PID pid进程号 -F

taskkill -PID 17032 -F

杀死进程

image-20211123203003028

\