Front-end port 8080 is occupied

cause

When the front end starts the project for the first time, it starts port 8080, and restarts the project after closing the project. However, port 8080 is occupied. Port 8081 is started

solution

1. Find the 8080 thread and kill it.

Open a cmd window as an administrator and enter the following command:
找出使用8080端口的pid

netstat -o -n -a | findstr :8080 

insert image description here
kill掉目前8080端口所占用的线程or在任务管理器中找到对应进程关闭进程就ok

taskkill /F /PID 7256    

insert image description here

Guess you like

Origin blog.csdn.net/weixin_52755319/article/details/125272625